From d96fe614624771bed99c418bbc9bb4f09ce7bd3a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 22 Oct 2023 23:46:58 +0200 Subject: [PATCH] Fix: #1685, fix oopsie --- package.json | 2 +- src/UI/SpecialVisualizations.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9877e1557..6a59ebb77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mapcomplete", - "version": "0.33.11", + "version": "0.33.12", "repository": "https://github.com/pietervdvn/MapComplete", "description": "A small website to edit OSM easily", "bugs": "https://github.com/pietervdvn/MapComplete/issues", diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index ce917c685..9cc631d58 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -688,10 +688,11 @@ export default class SpecialVisualizations { }, ], constr: (state, tags, args) => { + const targetKey = args[0] === "" ? undefined : args[0] return new SvelteUIElement(UploadImage, { state, tags, - targetKey: args[0], + targetKey, labelText: args[1], image: args[2], })