diff --git a/UI/BigComponents/Filterview.svelte b/UI/BigComponents/Filterview.svelte index ce1b5cf76..6275dcd81 100644 --- a/UI/BigComponents/Filterview.svelte +++ b/UI/BigComponents/Filterview.svelte @@ -19,11 +19,7 @@ export let filteredLayer: FilteredLayer; export let highlightedLayer: Store = new ImmutableStore(undefined); export let zoomlevel: Store = new ImmutableStore(22); let layer: LayerConfig = filteredLayer.layerDef; -let isDisplayed: boolean = filteredLayer.isDisplayed.data; -onDestroy(filteredLayer.isDisplayed.addCallbackAndRunD(d => { - isDisplayed = d; - return false; -})); +let isDisplayed: Store = filteredLayer.isDisplayed; /** * Gets a UIEventSource as boolean for the given option, to be used with a checkbox @@ -52,9 +48,9 @@ $: onDestroy( ); {#if filteredLayer.layerDef.name} -
-