From e6ca714c229b421bbfb585c7f793190d026ddedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 18 Nov 2024 13:16:03 +0100 Subject: [PATCH] feat(client): Zoom the map onto the selected location --- client/src/hooks/use-apply-map-location.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/hooks/use-apply-map-location.ts b/client/src/hooks/use-apply-map-location.ts index 190742a..377a996 100644 --- a/client/src/hooks/use-apply-map-location.ts +++ b/client/src/hooks/use-apply-map-location.ts @@ -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]); }