Fix: image upload will now fail less for newly created points

This commit is contained in:
Pieter Vander Vennet 2024-12-06 01:21:02 +01:00
parent c002d66329
commit b91bd78762

View file

@ -744,13 +744,14 @@ export default class SpecialVisualizations {
required: false, required: false,
}, },
], ],
constr: (state, tags, args) => { constr: (state, tags, args, feature) => {
const targetKey = args[0] === "" ? undefined : args[0] const targetKey = args[0] === "" ? undefined : args[0]
const noBlur = args[3]?.toLowerCase()?.trim() const noBlur = args[3]?.toLowerCase()?.trim()
return new SvelteUIElement(UploadImage, { return new SvelteUIElement(UploadImage, {
state, state,
tags, tags,
targetKey, targetKey,
feature,
labelText: args[1], labelText: args[1],
image: args[2], image: args[2],
noBlur: noBlur === "true" || noBlur === "yes", noBlur: noBlur === "true" || noBlur === "yes",