From 36f73cb2852fe43aaa98bf18d002962d31244bd5 Mon Sep 17 00:00:00 2001 From: Kelani Tolulope Date: Mon, 26 Jun 2023 20:11:26 +0100 Subject: [PATCH] Fix geo module field breaking when field type is multiple --- .../web/compose/src/components/ModuleFields/Editor/Geometry.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue b/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue index e3a985ec6..9de99ebb2 100644 --- a/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue +++ b/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue @@ -296,7 +296,7 @@ export default { openMap (index) { this.localValueIndex = index const firstCoordinates = (index >= 0 ? this.localValue[index] : this.localValue) || {} - firstCoordinates.coordinates = [...firstCoordinates.coordinates] + firstCoordinates.coordinates = firstCoordinates.coordinates ? [...firstCoordinates.coordinates] : [] this.map.center = firstCoordinates.coordinates && firstCoordinates.coordinates.length === 2 &&