allow to change the key of a multi-valued tag

fixes #8836
This commit is contained in:
Martin Raifer
2021-12-03 15:19:07 +01:00
parent 250763882d
commit b4bc7f49bb
3 changed files with 17 additions and 10 deletions
+4 -1
View File
@@ -161,7 +161,10 @@ export function uiEntityEditor(context) {
for (var k in changed) {
if (!k) continue;
var v = changed[k];
if (v !== undefined || tags.hasOwnProperty(k)) {
if (typeof v === 'object') {
// a "key only" tag change
tags[k] = tags[v.oldKey];
} else if (v !== undefined || tags.hasOwnProperty(k)) {
tags[k] = v;
}
}