Fixed checkbox show

This commit is contained in:
Nicolai Ort 2023-02-18 15:52:59 +01:00
parent 1337676e08
commit 0900c2691e
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -112,6 +112,7 @@
<input
type="checkbox"
class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded"
checked={generate_runners.filter((i)=>i.id == row.id).length > 0}
on:click={() => {
if (
generate_runners.findIndex((i) => i.id == row.id) == -1
@ -123,6 +124,7 @@
(r) => r.id != row.id
);
}
console.log(generate_runners)
}}
/>
</td>