From 7c967ae84b2f5620d3efed2ce1e93551ddbde04a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 13 Apr 2023 22:26:25 -0700 Subject: skip undefined locations --- src/components/LocationsMap.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 8a1b6afd..20ef8878 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -100,9 +100,7 @@ let markers = new MarkerClusterGroup(); locations.forEach((location) => { - if (location['deleted_at']) { - return; - } + if (location['deleted_at'] || !(location.lan && location.lon)) return; location = location['osm_json']; -- cgit v1.2.3