fix crash when feature is deleted while map-panning and photoviewer is open

closes #10994
This commit is contained in:
Martin Raifer
2025-04-29 15:03:14 +02:00
parent 6798f33598
commit 96746c2f7d

View File

@@ -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)) {