diff --git a/CHANGELOG.md b/CHANGELOG.md index 5805b44ec..a5a92b166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ _Breaking developer changes, which may affect downstream projects or sites that #### :white_check_mark: Validation #### :bug: Bugfixes * Show turn restriction editor also when there is only one possible "to" way, as there might exist restrictions with that way as _via_ ([#9983]) +* Local photos: Fix bug which prevented the last image from being removed from the map when removed from the list #### :earth_asia: Localization #### :hourglass: Performance #### :mortar_board: Walkthrough / Help diff --git a/modules/svg/local_photos.js b/modules/svg/local_photos.js index 597c9e2dd..6300f1d28 100644 --- a/modules/svg/local_photos.js +++ b/modules/svg/local_photos.js @@ -208,7 +208,7 @@ export function svgLocalPhotos(projection, context, dispatch) { layer = layerEnter .merge(layer); - if (_photos && _photos.length !== 0) { + if (_photos) { display_markers(_photos); } }