This commit is contained in:
Pieter Vander Vennet 2024-06-14 14:41:34 +02:00
parent 1d325e8120
commit 6f91ca7f4d

View file

@ -1,6 +1,6 @@
<script lang="ts">
import TagRenderingConfig from "../../../Models/ThemeConfig/TagRenderingConfig"
import { Store, UIEventSource } from "../../../Logic/UIEventSource"
import { ImmutableStore, Store, UIEventSource } from "../../../Logic/UIEventSource"
import type { Feature } from "geojson"
import type { SpecialVisualizationState } from "../../SpecialVisualization"
import TagRenderingAnswer from "./TagRenderingAnswer.svelte"
@ -74,7 +74,7 @@
onDestroy(_htmlElement.addCallbackAndRun(() => setHighlighting()))
}
let answerId = "answer-" + Utils.randomString(5)
let debug = state.featureSwitches.featureSwitchIsDebugging
let debug = state?.featureSwitches?.featureSwitchIsDebugging ?? new ImmutableStore(false)
</script>
<div bind:this={htmlElem} class={twMerge(clss, "tr-" + config.id)}>