diff --git a/src/components/Select/SelectItem.svelte b/src/components/Select/SelectItem.svelte index 04ff2d1f..8cf63f6e 100644 --- a/src/components/Select/SelectItem.svelte +++ b/src/components/Select/SelectItem.svelte @@ -14,13 +14,11 @@ let selected = false; - const unsubscribe = ctx.selectedValue.subscribe(currentValue => { + ctx.selectedValue.subscribe(currentValue => { if (currentValue === value) { selected = true; } }); - - unsubscribe();