diff --git a/CHANGELOG.md b/CHANGELOG.md index a3684fe13..9b35a4379 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ _Breaking developer changes, which may affect downstream projects or sites that #### :bug: Bugfixes * Fix some direction cones not appearing on railway tracks ([#10843], thanks [@k-yle]) * Better handling of rate limited API calls and other API errors ([#10299]) +* Fix info boxes for descriptions of brands referenced by [NSI](https://github.com/osmlab/name-suggestion-index) presets ([#10885]) #### :earth_asia: Localization #### :hourglass: Performance #### :mortar_board: Walkthrough / Help @@ -58,6 +59,7 @@ _Breaking developer changes, which may affect downstream projects or sites that [#10299]: https://github.com/openstreetmap/iD/issues/10299 [#10843]: https://github.com/openstreetmap/iD/pull/10843 [#10852]: https://github.com/openstreetmap/iD/issues/10852 +[#10885]: https://github.com/openstreetmap/iD/issues/10885 [@0xatulpatil]: https://github.com/0xatulpatil diff --git a/modules/services/wikidata.js b/modules/services/wikidata.js index 82e70c0bc..839373744 100644 --- a/modules/services/wikidata.js +++ b/modules/services/wikidata.js @@ -175,7 +175,7 @@ export default { // prepare result var result = { title: entity.id, - description: description ? description.value : '', + description: selection => selection.text(description ? description.value : ''), descriptionLocaleCode: description ? description.language : '', editURL: 'https://www.wikidata.org/wiki/' + entity.id };