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