forked from MapComplete/MapComplete
Fix: don't crash if an unselected element is selected (by not selecting it)
This commit is contained in:
parent
b10d999b05
commit
981b412180
2 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue