From 07f4aaa59092129301e848d454997f45b90470a5 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 23 Jun 2022 15:46:17 +0200 Subject: [PATCH] quick fix: address: only add coordinates to selected postcode if coordinates exist --- .../vuejs/Address/components/AddAddress/CitySelection.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue index 9dd85fa73..292b0de16 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue @@ -121,7 +121,9 @@ export default { this.entity.selected.city = value; this.entity.selected.postcode.name = value.name; this.entity.selected.postcode.code = value.code; - this.entity.selected.postcode.coordinates = value.center.coordinates; + if (value.center) { + this.entity.selected.postcode.coordinates = value.center.coordinates; + } this.entity.selected.writeNew.postcode = false; this.$emit('getReferenceAddresses', value); this.focusOnAddress();