forked from MapComplete/MapComplete
Move tag merge logic
This commit is contained in:
parent
00d9fe2d34
commit
a2dcbeb087
1 changed files with 6 additions and 6 deletions
|
@ -223,12 +223,6 @@
|
|||
selectedTags = undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onSave(_ = undefined) {
|
||||
if (selectedTags === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
if (extraTags.data) {
|
||||
// Map the extraTags into an array of Tag objects
|
||||
|
@ -245,6 +239,12 @@
|
|||
console.error("selectedTags is not of type Tag or And")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onSave(_ = undefined) {
|
||||
if (selectedTags === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
if (layer === undefined || (layer?.source === null && layer.id !== "favourite")) {
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue