diff --git a/content/index.blade.php b/content/index.blade.php index cd5c5dd..8b6995d 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -147,7 +147,7 @@ let openInfoWindow = null; currentItems = currentItems.map(function (item) { - item.location = {}; + if(item.location == undefined) item.location = {}; item.location.lat = parseFloat(item[locationField].lat); item.location.lng = parseFloat(item[locationField].lng); let marker = new google.maps.Marker({