From edb176f5136ea147b68602681fa20dd76c60799f Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Wed, 6 Dec 2023 12:51:46 +0100 Subject: [PATCH] Rerender local photos when last local photo is removed from list --- CHANGELOG.md | 1 + modules/svg/local_photos.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); } }