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