From 73d40206b44880a10a5b990959b0ac66eceb2e53 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 25 Jun 2025 15:43:00 +0200 Subject: [PATCH] UX(taghint): don't show deleted tags if they are not present on the object in the first place --- src/UI/Popup/TagHint.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/Popup/TagHint.svelte b/src/UI/Popup/TagHint.svelte index 2bbeecd06..abfeed0b7 100644 --- a/src/UI/Popup/TagHint.svelte +++ b/src/UI/Popup/TagHint.svelte @@ -10,19 +10,19 @@ * Depending on the options, it'll link through to the wiki or might be completely hidden */ export let tags: TagsFilter[] - export let currentProperties: Record = {} + export let currentProperties: Record = undefined {#if tags?.length > 0}
{#each tags as tag}
- {#if tag["value"] === ""} + {#if tag["value"] === "" && currentProperties?.[tag["key"]]} {tag["key"]} {:else} - + {/if}
{/each}