diff options
| author | Adam Soltys <[email protected]> | 2023-04-13 22:26:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-13 22:26:25 -0700 |
| commit | 345b85a72e7708f953867fd93429f0678f1cbccd (patch) | |
| tree | b65a56c52a5b30ce1b6d01b79dd085a7465daa9f /src/components | |
| parent | 37db93b785acbe2e5de9ae511571cef30427e125 (diff) | |
| download | coinos-ui-345b85a72e7708f953867fd93429f0678f1cbccd.tar.gz coinos-ui-345b85a72e7708f953867fd93429f0678f1cbccd.zip | |
skip undefined locations
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/LocationsMap.svelte | 4 |
1 files changed, 1 insertions, 3 deletions
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']; |
