Skip to content

Commit 8282d6e

Browse files
committed
fix: broken type generation
Fixes #210
1 parent 744afc4 commit 8282d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/components/ScriptGoogleMaps.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ async function createAdvancedMapMarker(_options: google.maps.marker.AdvancedMark
140140
const options = typeof _options === 'string'
141141
? {
142142
position: {
143-
lat: Number.parseFloat(_options.split(',')[0]),
144-
lng: Number.parseFloat(_options.split(',')[1]),
143+
lat: Number.parseFloat(_options.split(',')[0] || '0'),
144+
lng: Number.parseFloat(_options.split(',')[1] || '0'),
145145
},
146146
}
147147
: _options

0 commit comments

Comments
 (0)