From 6221fcc84259e88012d2c19c77bc0707172c8030 Mon Sep 17 00:00:00 2001 From: Dang Nguyen Nguyen Date: Sun, 20 Aug 2023 22:50:06 -0700 Subject: [PATCH] fix eslint error --- src/components/Map/Map.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Map/Map.jsx b/src/components/Map/Map.jsx index d46f023..6fb7512 100644 --- a/src/components/Map/Map.jsx +++ b/src/components/Map/Map.jsx @@ -71,7 +71,7 @@ export default function Map({ if (focusLocation) { handleFocus(); } - }, [focusLocation]); + }, [focusLocation, setFocusLocation]); const allMarkers = data .filter((item) => {