Maps on Dynamic Pages - If no address available I want to pull latitude and longitude to set the map.

So I have code for this that seems to be functioning just fine. But also getting errors in my console. Not sure if I should set this up differently.

My code:
/// If No Address Look for Long., Lat. ///

/// If No Address Look for Long., Lat. ///

$w.onReady( function () {
$w( “#dynamicDataset” ).onReady(() => {

let currentItem = $w( “#dynamicDataset” ).getCurrentItem();

    $w( "#googleMaps2" ).location = { 

“latitude” : currentItem.latitude,
“longitude” : currentItem.longitude,
“description” : currentItem.title,
};
});
});

Snip of Dataset:

Console warning and error on a map where I have a map address:

Console error on a map where I have a longitude/latitude:

I want to just leave it all alone because it’s working in preview mode and on the live site! Just don’t know if that’s wise in the long run…any thoughts??

Live site examples:

Example of Page pulling map info longitude / latitude: https://john50046.wixsite.com/newton-county-in/destinations/Willow-Slough-Fish-%26-Wildlife-Area
Example of Pate pulling map info from Map Address: https://john50046.wixsite.com/newton-county-in/destinations/Willow-Slough-Shooting-Range