From 9ca8ec4ce24943d5d2d46c1f5d69b13391116391 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 20 Mar 2026 15:45:55 +0000 Subject: [PATCH] Handle null image location in communication page --- html/template/sync/communication-root.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/html/template/sync/communication-root.html b/html/template/sync/communication-root.html index c23cb262..71f2a6b5 100644 --- a/html/template/sync/communication-root.html +++ b/html/template/sync/communication-root.html @@ -290,7 +290,11 @@ let min = { lat: loc.latitude, lng: loc.longitude }; let max = { lat: loc.latitude, lng: loc.longitude }; for (const i of this.selectedCommunication.public_report.images) { - if (i.location.latitude != 0 && i.location.longitude != 0) { + if ( + i.location != null && + i.location.latitude != 0 && + i.location.longitude != 0 + ) { markers.push( new maplibregl.Marker({ color: "#00FF00", @@ -950,14 +954,14 @@ >Distance from Reporter