diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-15 10:40:07 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-15 10:40:07 -0700 |
commit | 9a2d00da67b0436d28dd64f8a25aa8a2b1a5140d (patch) | |
tree | bed140f5c36b1c1b7ebe129ce1dd541c5edf0d8b | |
parent | a751e4375ad19589efa36c06eda7150a93cbc9f2 (diff) |
syntax
-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; } |