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
|
$: isHardDelete = changedProperties[DeleteConfig.deleteReasonKey] !== undefined
|
||||||
|
|
||||||
async function onDelete() {
|
async function onDelete() {
|
||||||
|
if(selectedTags === undefined){
|
||||||
|
return
|
||||||
|
}
|
||||||
currentState = "applying"
|
currentState = "applying"
|
||||||
let actionToTake: OsmChangeAction
|
let actionToTake: OsmChangeAction
|
||||||
const changedProperties = TagUtils.changeAsProperties(selectedTags.asChange(tags?.data ?? {}))
|
const changedProperties = TagUtils.changeAsProperties(selectedTags.asChange(tags?.data ?? {}))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue