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]);