Fix crash when multiselection has differing values in combo field

closes #9369
This commit is contained in:
Martin Raifer
2022-11-12 22:03:28 +01:00
parent 1e4bb803a9
commit d9a4d6cbde
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -40,13 +40,12 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :sparkles: Usability & Accessibility
#### :white_check_mark: Validation
#### :bug: Bugfixes
* Fix crash when performing a multiselection of objects with differing tags values in a combo field ([#9369])
#### :hourglass: Performance
#### :rocket: Presets
#### :hammer: Development
[#xxxx]: https://github.com/openstreetmap/iD/issues/xxxx
[#xxxx]: https://github.com/openstreetmap/iD/pull/xxxx
[@xxxx]: https://github.com/xxxx
[#9369]: https://github.com/openstreetmap/iD/issues/9369
# 2.23.0
+3 -1
View File
@@ -685,7 +685,9 @@ export function uiFieldCombo(field, context) {
}
});
updateIcon(tags[field.key]);
if (!Array.isArray(tags[field.key])) {
updateIcon(tags[field.key]);
}
}
};