Browse Source

Merge branch 'geodata-follow-up-fixes' into map-marker-popups-for-shared-views

pull/5248/head
Daniel Spaude 2 years ago
parent
commit
744b82be25
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 8
      packages/nc-gui/components/cell/GeoData.vue

8
packages/nc-gui/components/cell/GeoData.vue

@ -50,14 +50,14 @@ const clear = () => {
const onClickSetCurrentLocation = () => {
isLoading = true
const onSuccess = (position) => {
const onSuccess: PositionCallback = (position: GeolocationPosition) => {
const crd = position.coords
formState.latitude = crd.latitude
formState.longitude = crd.longitude
formState.latitude = `${crd.latitude}`
formState.longitude = `${crd.longitude}`
isLoading = false
}
const onError = (err) => {
const onError: PositionErrorCallback = (err) => {
console.error(`ERROR(${err.code}): ${err.message}`)
isLoading = false
}

Loading…
Cancel
Save