Skip to content

Commit

Permalink
feat(client): Zoom the map onto the selected location
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 18, 2024
1 parent 1847dd8 commit e6ca714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/hooks/use-apply-map-location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export default function useApplyMapLocation(map: MapRef | null) {
map.fitBounds(bounds);
triggerFitBoundsRef.current = false;
}
}, [map, location, previousLocation, data, isLoading]);
}, [map, location, previousLocation, bounds]);
}

0 comments on commit e6ca714

Please sign in to comment.