From db9c5b233fbea764a1055e98c800ae29a51e5a53 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 15 Aug 2025 20:17:50 +0200 Subject: [PATCH] Fix: fix studio --- src/UI/Popup/TagRendering/SpecialTranslation.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/UI/Popup/TagRendering/SpecialTranslation.svelte b/src/UI/Popup/TagRendering/SpecialTranslation.svelte index a9d5eff00..7e65bf60f 100644 --- a/src/UI/Popup/TagRendering/SpecialTranslation.svelte +++ b/src/UI/Popup/TagRendering/SpecialTranslation.svelte @@ -38,7 +38,7 @@ let key = "cached_special_spec_" + $language specs = t[key] if (specs === undefined) { - specs = SpecialVisualizations.constructSpecification(txt) + specs = SpecialVisualizations.constructSpecification(txt) ?? [] t[key] = specs } } @@ -69,8 +69,9 @@ } } - -{#if lang === "*"} +{#if specs === undefined} + +{:else if lang === "*"} {#each specs as specpart} {#if typeof specpart === "string"}