Fix: disable 'delete'-button if no reason is selected, fix #1631

This commit is contained in:
Pieter Vander Vennet 2023-10-05 16:27:03 +02:00
parent 2843b01586
commit 6b6b1e3286

View file

@ -50,6 +50,9 @@
$: isHardDelete = changedProperties[DeleteConfig.deleteReasonKey] !== undefined
async function onDelete() {
if(selectedTags === undefined){
return
}
currentState = "applying"
let actionToTake: OsmChangeAction
const changedProperties = TagUtils.changeAsProperties(selectedTags.asChange(tags?.data ?? {}))