diff --git a/content/index.blade.php b/content/index.blade.php index 047b46c..d18cb6a 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -146,6 +146,10 @@ if (currentItems.length > 0) { let openInfoWindow = null; + currentItems = currentItems.filter(function(item){ + return item.location != undefined; + }); + currentItems = currentItems.map(function (item) { item.location.lat = parseFloat(item[locationField].lat); item.location.lng = parseFloat(item[locationField].lng);