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,
},
],
constr: (state, tags, args) => {
constr: (state, tags, args, feature) => {
const targetKey = args[0] === "" ? undefined : args[0]
const noBlur = args[3]?.toLowerCase()?.trim()
return new SvelteUIElement(UploadImage, {
state,
tags,
targetKey,
feature,
labelText: args[1],
image: args[2],
noBlur: noBlur === "true" || noBlur === "yes",