From 093f08bcdb92c46053ec78878b1ed2e375efd2ff Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Fri, 15 Sep 2023 12:56:17 +0200 Subject: [PATCH] fix: load of locations data in LocationsMap (#323) --- src/components/ItaliaTheme/View/Commons/LocationsMap.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx b/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx index 4b75fb8ca..75c43e92e 100644 --- a/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx +++ b/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx @@ -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 () =>