From eede2d17dd411a3b27295a9efab8cb69df3b57c2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 2 Feb 2024 16:38:58 +0100 Subject: [PATCH] Fix: add default value for setStatus --- assets/themes/velopark/velopark.json | 3 ++- src/UI/SpecialVisualizations.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/themes/velopark/velopark.json b/assets/themes/velopark/velopark.json index 23c98f3a70..bd94f04f3c 100644 --- a/assets/themes/velopark/velopark.json +++ b/assets/themes/velopark/velopark.json @@ -138,7 +138,8 @@ "message": { "en": "Mark this item as linked manually. Use this if you did apply the reference via copy-paste or via another editor", "nl": "Markeer als gelinkt. Gebruik deze optie indien je de ID plakte in een fietsenstalling of via een andere editor toevoegdemap" - } + }, + "status": 1 } } }, diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index aaf8b7e1bf..81705161e9 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -1097,6 +1097,7 @@ export default class SpecialVisualizations { if (maproulette_id_key === "" || maproulette_id_key === undefined) { maproulette_id_key = "mr_taskId" } + statusToSet = statusToSet ?? "1" return new SvelteUIElement(MaprouletteSetStatus, { state, tags: tagsSource,