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 &&