From a0925f9ba5f924364703d6555a2fe3d28bf5b1da Mon Sep 17 00:00:00 2001 From: OleSTEEP Date: Thu, 16 Oct 2025 17:27:13 +0300 Subject: [PATCH] frontend: properly bind marks values --- .../src/lib/components/containers/marks.svelte | 10 +++++----- frontend/src/lib/components/mark.svelte | 14 +++++++++++--- frontend/src/routes/+layout.svelte | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/frontend/src/lib/components/containers/marks.svelte b/frontend/src/lib/components/containers/marks.svelte index 16c27bb..5375923 100644 --- a/frontend/src/lib/components/containers/marks.svelte +++ b/frontend/src/lib/components/containers/marks.svelte @@ -4,19 +4,19 @@ let { value = $bindable([]), label = "" } = $props(); let items: string[] = $state([]); + + $effect(() => {value = items});

{label}

- {#each items as item} - + {#each items as item, index} + {/each} { - items.push(""); - value = items; + items.push(null); }} /> -