mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
fix crash when feature is deleted while map-panning and photoviewer is open
closes #10994
This commit is contained in:
@@ -169,7 +169,8 @@ export function uiPhotoviewer(context) {
|
||||
|
||||
const graph = context.graph();
|
||||
const entities = context.selectedIDs()
|
||||
.map(id => graph.entity(id));
|
||||
.map(id => graph.hasEntity(id))
|
||||
.filter(Boolean);
|
||||
|
||||
if (entities.map(entity => entity.tags[tagName])
|
||||
.every(value => value === activeImage?.id)) {
|
||||
|
||||
Reference in New Issue
Block a user