3
0

Fix markers with bad coordinates breaking the discovery map

This commit is contained in:
Jože Fortun 2022-11-28 16:09:02 +01:00
parent b05a1b9978
commit 3be6b9285e

View File

@ -309,7 +309,7 @@ export default {
if (isGeometry) {
value.forEach(coordinates => {
coordinates = JSON.parse(coordinates || '{}').coordinates
if (coordinates) {
if (coordinates && coordinates.length) {
markers.push({ id, coordinates })
}
})