From 5048da58e7cb6446716ca143b93e98e946f940b8 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 3 Oct 2024 17:01:57 +0200 Subject: [PATCH] Fix: fix filters in statistics.html --- src/UI/BigComponents/Filterview.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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