Fix: don't crash if an unselected element is selected (by not selecting it)

This commit is contained in:
Pieter Vander Vennet 2025-04-23 10:43:07 +02:00
parent b10d999b05
commit 981b412180
2 changed files with 16 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<script lang="ts">
import type { Feature } from "geojson"
import { ImmutableStore, Store, UIEventSource } from "../../Logic/UIEventSource"
import { Store, UIEventSource } from "../../Logic/UIEventSource"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import type { SpecialVisualizationState } from "../SpecialVisualization"
import TagRenderingAnswer from "../Popup/TagRendering/TagRenderingAnswer.svelte"
@ -35,7 +35,9 @@
<!-- Title element and title icons-->
<h3 class="m-0">
<a href={`#${$tags.id}`}>
{#if layer.title}
<TagRenderingAnswer config={layer.title} {selectedElement} {state} {tags} {layer} />
{/if}
</a>
</h3>
<div