diff --git a/src/UI/Studio/Region.svelte b/src/UI/Studio/Region.svelte index 879d4b6ca..d572773f3 100644 --- a/src/UI/Studio/Region.svelte +++ b/src/UI/Studio/Region.svelte @@ -11,7 +11,7 @@ export let configs: ConfigMeta[] export let title: string | undefined = undefined - export let path: (string | number)[] = [] + export let path: readonly (string | number)[] = [] let expertMode = state.expertMode let configsNoHidden = configs.filter((schema) => schema.hints?.group !== "hidden") @@ -21,9 +21,9 @@ {#if configs === undefined} - Bug: 'Region' received 'undefined' + Bug: 'Region' received 'undefined' at {path.join(".")} {:else if configs.length === 0} - Bug: Region received empty list as configuration + Bug: Region received empty list as configuration at {path.join(".")} {:else if title}

{title}

diff --git a/src/UI/Studio/TagRenderingInput.svelte b/src/UI/Studio/TagRenderingInput.svelte index a15065ac9..cfa056435 100644 --- a/src/UI/Studio/TagRenderingInput.svelte +++ b/src/UI/Studio/TagRenderingInput.svelte @@ -7,7 +7,7 @@ import type { ConfigMeta } from "./configMeta" import type { MappingConfigJson, - QuestionableTagRenderingConfigJson, + QuestionableTagRenderingConfigJson } from "../../Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson" import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig" import TagRenderingEditable from "../Popup/TagRendering/TagRenderingEditable.svelte" @@ -59,8 +59,8 @@ labelMapping = { if: "value=" + label, then: { - en: "Builtin collection " + label + ":", - }, + en: "Builtin collection " + label + ":" + } } perLabel[label] = labelMapping mappingsBuiltin.push(labelMapping) @@ -72,14 +72,14 @@ mappingsBuiltin.push({ if: "value=" + tr["id"], then: { - en: "Builtin " + tr["id"] + "
" + description + "
", - }, + en: "Builtin " + tr["id"] + "
" + description + "
" + } }) } const configBuiltin = new TagRenderingConfig({ question: "Which builtin element should be shown?", - mappings: mappingsBuiltin, + mappings: mappingsBuiltin }) const tags = new UIEventSource({ value }) @@ -112,7 +112,7 @@ "condition", "metacondition", "mappings", - "icon", + "icon" ]) const ignored = new Set(["labels", "description", "classes"]) @@ -196,7 +196,10 @@

Text field and input element configuration

- + {#if freeformSchema?.length > 0} + + + {/if}