From 401b2c2da38971b71fb56fdd45ee3e61d2f96770 Mon Sep 17 00:00:00 2001 From: cesarLima1 Date: Mon, 10 Jun 2024 10:22:07 -0400 Subject: [PATCH] [TM-905] run init map on mount only --- src/components/elements/Map-mapbox/Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/elements/Map-mapbox/Map.tsx b/src/components/elements/Map-mapbox/Map.tsx index 37112c7ad..cb7c8049c 100644 --- a/src/components/elements/Map-mapbox/Map.tsx +++ b/src/components/elements/Map-mapbox/Map.tsx @@ -120,7 +120,7 @@ export const MapContainer = ({ useEffect(() => { initMap(); - }); + }, []); useEffect(() => { if (isUserDrawing) {