Skip to content

Commit

Permalink
Merge pull request #1040 from Vizzuality/GMW-close-popup-when-fly
Browse files Browse the repository at this point in the history
[FE](fix): close popup after fly
  • Loading branch information
mluena authored Jan 17, 2024
2 parents 581a771 + acba1f2 commit 99fef4a
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 99fef4a

Please sign in to comment.