forked from MapComplete/MapComplete
Fix: image upload will now fail less for newly created points
This commit is contained in:
parent
c002d66329
commit
b91bd78762
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue