try to fix reactivity

This commit is contained in:
Richard O'flynn 2020-12-10 18:50:42 +00:00
commit 4d82e78f2c
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@
<Button <Button
on:click="{() => { on:click="{() => {
selectedValues3_control = selectedValues3.map((item) => { selectedValues3_control = selectedValues3_control.map((item) => {
return { ...item, selected: false }; return { ...item, selected: false };
}); });
}}" }}"

View file

@ -18,7 +18,7 @@
import { writable } from "svelte/store"; import { writable } from "svelte/store";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
const _selectedValues = writable([]); const _selectedValues = writable(selectedValues);
$: _selectedValues.set(selectedValues); $: _selectedValues.set(selectedValues);