Fix: #1685, fix oopsie

This commit is contained in:
Pieter Vander Vennet 2023-10-22 23:46:58 +02:00
parent 480956d45d
commit d96fe61462
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "mapcomplete", "name": "mapcomplete",
"version": "0.33.11", "version": "0.33.12",
"repository": "https://github.com/pietervdvn/MapComplete", "repository": "https://github.com/pietervdvn/MapComplete",
"description": "A small website to edit OSM easily", "description": "A small website to edit OSM easily",
"bugs": "https://github.com/pietervdvn/MapComplete/issues", "bugs": "https://github.com/pietervdvn/MapComplete/issues",

View file

@ -688,10 +688,11 @@ export default class SpecialVisualizations {
}, },
], ],
constr: (state, tags, args) => { constr: (state, tags, args) => {
const targetKey = args[0] === "" ? undefined : args[0]
return new SvelteUIElement(UploadImage, { return new SvelteUIElement(UploadImage, {
state, state,
tags, tags,
targetKey: args[0], targetKey,
labelText: args[1], labelText: args[1],
image: args[2], image: args[2],
}) })