location saving is not working when geocoding is disabled, fix #238

This commit is contained in:
lesion
2023-02-22 08:45:18 +01:00
parent 07f9e2d9ee
commit 0fa7769844
2 changed files with 7 additions and 4 deletions

View File

@@ -232,8 +232,8 @@ export default {
}
formData.append('place_name', this.event.place.name.trim())
formData.append('place_address', this.event.place.address)
formData.append('place_latitude', this.event.place.latitude)
formData.append('place_longitude', this.event.place.longitude)
if (this.event.place.latitude) { formData.append('place_latitude', this.event.place.latitude) }
if (this.event.place.longitude) { formData.append('place_longitude', this.event.place.longitude) }
formData.append('description', this.event.description)
formData.append('multidate', !!this.date.multidate)
let [hour, minute] = this.date.fromHour.split(':')