forked from MapComplete/MapComplete
Fix: disable 'delete'-button if no reason is selected, fix #1631
This commit is contained in:
parent
2843b01586
commit
6b6b1e3286
1 changed files with 3 additions and 0 deletions
|
@ -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 ?? {}))
|
||||
|
|
Loading…
Reference in a new issue