diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/views/collections/CollectionMapView.tsx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/client/views/collections/CollectionMapView.tsx b/src/client/views/collections/CollectionMapView.tsx index 1d8ad2458..b5043d1c5 100644 --- a/src/client/views/collections/CollectionMapView.tsx +++ b/src/client/views/collections/CollectionMapView.tsx @@ -207,7 +207,7 @@ class CollectionMapView extends CollectionSubView<MapSchema, Partial<MapProps> &          const { Document, fieldKey, active, google } = this.props;          let center = this.getLocation(Document, `${fieldKey}-mapCenter`);          if (center === undefined) { -            center = childLayoutPairs.map(pair => this.getLocation(pair.layout, fieldKey)).find(layout => layout); +            center = childLayoutPairs.map(({ layout }) => this.getLocation(layout, fieldKey)).find(layout => layout);              if (center === undefined) {                  center = defaultLocation;              } | 
