Skip to content

Commit

Permalink
fix: clustering crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Oct 23, 2023
1 parent 3163af7 commit 9852b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Clustering.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Clustering({ category, children }) {
React.useEffect(() => {
if (superCluster) {
/** @type {import('geojson').Feature<import('geojson').Point>[]} */
const features = children.map((reactEl) => ({
const features = children.filter(Boolean).map((reactEl) => ({
type: 'Feature',
id: reactEl?.key,
properties: {},
Expand Down

0 comments on commit 9852b68

Please sign in to comment.