Skip to content

Commit

Permalink
fix: hiding mon causing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Oct 14, 2023
1 parent 021ce42 commit 37d465d
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 @@ -146,7 +146,7 @@ function Clustering({ category, children }) {
<>
<GeoJSON ref={featureRef} data={null} pointToLayer={createClusterIcon} />
{children.length > rules.forcedLimit || userCluster
? children.filter((x) => markers.has(x.key))
? children.filter((x) => x && markers.has(x.key))
: children}
{limitHit && (
<Notification
Expand Down

0 comments on commit 37d465d

Please sign in to comment.