Skip to content

Commit

Permalink
fix: load of locations data in LocationsMap (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico authored Sep 15, 2023
1 parent 3d5bcc4 commit 093f08b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/ItaliaTheme/View/Commons/LocationsMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ const LocationsMap = ({ center, locations }) => {

useEffect(() => {
venues.forEach((loc) => {
if (
!fetchedLocations?.[loc.key]?.loading &&
!fetchedLocations?.[loc.key]?.loaded
) {
dispatch(getContent(loc.url, null, loc.key));
}
dispatch(getContent(loc.url, null, loc.key));
});

return () =>
Expand Down

0 comments on commit 093f08b

Please sign in to comment.