Fix: add default value for setStatus

This commit is contained in:
Pieter Vander Vennet 2024-02-02 16:38:58 +01:00
parent 6a2e372062
commit eede2d17dd
2 changed files with 3 additions and 1 deletions

View file

@ -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
}
}
},

View file

@ -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,