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,
|
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",
|
||||||
|
|
Loading…
Reference in a new issue