Skip to content

Commit

Permalink
close popup when fly
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Jan 17, 2024
1 parent 581a771 commit acba1f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/containers/map/location-pop-up/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const LocationPopUP = ({
}

push(`/country/${location.iso}/${queryParams ? `?${queryParams}` : ''}`, null);
onClose();
}
}, [setLocationBounds, push, queryParams, locations, feature]);

Expand All @@ -79,6 +80,7 @@ const LocationPopUP = ({
}

push(`/wdpa/${location.location_id}/${queryParams ? `?${queryParams}` : ''}`, null);
onClose();
}
}, [setLocationBounds, push, queryParams, locations, info]);

Expand Down

0 comments on commit acba1f2

Please sign in to comment.