Fix: fix studio

This commit is contained in:
Pieter Vander Vennet 2025-08-15 20:17:50 +02:00
parent a65f365485
commit db9c5b233f

View file

@ -38,7 +38,7 @@
let key = "cached_special_spec_" + $language let key = "cached_special_spec_" + $language
specs = t[key] specs = t[key]
if (specs === undefined) { if (specs === undefined) {
specs = SpecialVisualizations.constructSpecification(txt) specs = SpecialVisualizations.constructSpecification(txt) ?? []
t[key] = specs t[key] = specs
} }
} }
@ -69,8 +69,9 @@
} }
} }
</script> </script>
{#if specs === undefined}
{#if lang === "*"} <!-- Empty -->
{:else if lang === "*"}
{#each specs as specpart} {#each specs as specpart}
{#if typeof specpart === "string"} {#if typeof specpart === "string"}
<span class={clss}> <span class={clss}>