From 8282d6ee8701585e803a7cc3d30be10e2153af8a Mon Sep 17 00:00:00 2001 From: harlan Date: Thu, 22 Aug 2024 18:02:47 +1000 Subject: [PATCH] fix: broken type generation Fixes #210 --- src/runtime/components/ScriptGoogleMaps.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/ScriptGoogleMaps.vue b/src/runtime/components/ScriptGoogleMaps.vue index 6e5a66e9..cc5845fc 100644 --- a/src/runtime/components/ScriptGoogleMaps.vue +++ b/src/runtime/components/ScriptGoogleMaps.vue @@ -140,8 +140,8 @@ async function createAdvancedMapMarker(_options: google.maps.marker.AdvancedMark const options = typeof _options === 'string' ? { position: { - lat: Number.parseFloat(_options.split(',')[0]), - lng: Number.parseFloat(_options.split(',')[1]), + lat: Number.parseFloat(_options.split(',')[0] || '0'), + lng: Number.parseFloat(_options.split(',')[1] || '0'), }, } : _options