diff --git a/src/Models/ThemeConfig/TagRenderingConfig.ts b/src/Models/ThemeConfig/TagRenderingConfig.ts index 99312fb19..06106a7de 100644 --- a/src/Models/ThemeConfig/TagRenderingConfig.ts +++ b/src/Models/ThemeConfig/TagRenderingConfig.ts @@ -652,12 +652,6 @@ export default class TagRenderingConfig { multiSelectedMapping: boolean[] | undefined, currentProperties: Record ): UploadableTag { - console.log("Constructing change spec", { - freeformValue, - singleSelectedMapping, - multiSelectedMapping, - currentProperties, - }) if (typeof freeformValue === "string") { freeformValue = freeformValue?.trim() } diff --git a/src/UI/Popup/TagRendering/TagRenderingEditable.svelte b/src/UI/Popup/TagRendering/TagRenderingEditable.svelte index 3e1f00ec8..797c2503b 100644 --- a/src/UI/Popup/TagRendering/TagRenderingEditable.svelte +++ b/src/UI/Popup/TagRendering/TagRenderingEditable.svelte @@ -23,7 +23,7 @@ export let editingEnabled: Store | undefined = state?.featureSwitchUserbadge export let highlightedRendering: UIEventSource = undefined - export let clss + export let clss = undefined /** * Indicates if this tagRendering currently shows the attribute or asks the question to _change_ the property */ diff --git a/src/UI/Studio/SchemaBasedField.svelte b/src/UI/Studio/SchemaBasedField.svelte index e73fe5e37..b7b67e6d6 100644 --- a/src/UI/Studio/SchemaBasedField.svelte +++ b/src/UI/Studio/SchemaBasedField.svelte @@ -8,15 +8,14 @@ import EditLayerState from "./EditLayerState" import { onDestroy } from "svelte" import type { JsonSchemaType } from "./jsonSchema" - import { ConfigMetaUtils } from "./configMeta.ts" + import { ConfigMetaUtils } from "./configMeta" import ShowConversionMessage from "./ShowConversionMessage.svelte" export let state: EditLayerState export let path: (string | number)[] = [] export let schema: ConfigMeta export let startInEditModeIfUnset: boolean = schema.hints && !schema.hints.ifunset - let value = new UIEventSource(undefined) - + const isTranslation = schema.hints?.typehint === "translation" || schema.hints?.typehint === "rendered" || @@ -144,10 +143,10 @@ path, tags.map((tgs) => { const v = tgs["value"] - if (typeof v !== "string") { - return { ...v } + if (typeof v === "object") { + return { ...v } } - if (schema.type === "boolan") { + if (schema.type === "boolean") { return v === "true" || v === "yes" || v === "1" } if (mightBeBoolean(schema.type)) {