From acba1f2b33c688e236edae8db81e1fd7fbb526de Mon Sep 17 00:00:00 2001 From: anamontiaga Date: Wed, 17 Jan 2024 11:51:01 +0100 Subject: [PATCH] close popup when fly --- src/containers/map/location-pop-up/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/containers/map/location-pop-up/index.tsx b/src/containers/map/location-pop-up/index.tsx index cbdc25d11..8fda3ce80 100644 --- a/src/containers/map/location-pop-up/index.tsx +++ b/src/containers/map/location-pop-up/index.tsx @@ -62,6 +62,7 @@ const LocationPopUP = ({ } push(`/country/${location.iso}/${queryParams ? `?${queryParams}` : ''}`, null); + onClose(); } }, [setLocationBounds, push, queryParams, locations, feature]); @@ -79,6 +80,7 @@ const LocationPopUP = ({ } push(`/wdpa/${location.location_id}/${queryParams ? `?${queryParams}` : ''}`, null); + onClose(); } }, [setLocationBounds, push, queryParams, locations, info]);