Skip to content

Commit

Permalink
fix: broken type generation
Browse files Browse the repository at this point in the history
Fixes #210
  • Loading branch information
harlan-zw committed Aug 22, 2024
1 parent 744afc4 commit 8282d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/ScriptGoogleMaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8282d6e

Please sign in to comment.