Skip to content
Snippets Groups Projects
Commit 4952bba7 authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: rendering loop when clicking category

parent b270cda4
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ export const Map: React.FC<Props> = ({ createMode }) => {
newBounds = data?.map((poi) => [poi.lat, poi.lng] as LatLngTuple) || [];
}
setMapBounds(newBounds);
}, [data, selectedPoi]);
}, [JSON.stringify(data), selectedPoi]);
return (
<div className="relative h-full w-full z-0">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment