diff --git a/packages/core-data/src/components/PlaceMarkers.js b/packages/core-data/src/components/PlaceMarkers.js index 3b66d6b1..35227490 100644 --- a/packages/core-data/src/components/PlaceMarkers.js +++ b/packages/core-data/src/components/PlaceMarkers.js @@ -52,10 +52,12 @@ const PlaceMarkers = (props: Props) => { * @type {function(*): *} */ const onLoad = useCallback((records) => ( - _.map(records, (record) => setPlaces((prevPlaces) => [ - ...prevPlaces, - feature(record.geometry, record.properties) - ])) + _.map(records, (record) => setPlaces((prevPlaces) => record.geometry + ? [ + ...prevPlaces, + feature(record.geometry, record.properties) + ] + : prevPlaces)) ), []); /**