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 committed by Midgard
parent 11bc87c9db
commit 7a4aa1c4f4
Signed by: midgard
GPG key ID: 511C112F1331BBB4

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",