diff --git a/src/UI/BigComponents/Filterview.svelte b/src/UI/BigComponents/Filterview.svelte index ead622e14..d247c76df 100644 --- a/src/UI/BigComponents/Filterview.svelte +++ b/src/UI/BigComponents/Filterview.svelte @@ -21,7 +21,7 @@ let layer: LayerConfig = filteredLayer.layerDef let isDisplayed: UIEventSource = filteredLayer.isDisplayed - let isDebugging = state.featureSwitches.featureSwitchIsDebugging + let isDebugging = state?.featureSwitches?.featureSwitchIsDebugging ?? new ImmutableStore(false) /** * Gets a UIEventSource as boolean for the given option, to be used with a checkbox