From 0505396fccc41220010ce50b2436467d81eaf6fa Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 6 Nov 2024 16:58:26 +0200 Subject: [PATCH] prepare for contry stats merge --- src/context/MapContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/MapContext.tsx b/src/context/MapContext.tsx index 737452b..01ff977 100644 --- a/src/context/MapContext.tsx +++ b/src/context/MapContext.tsx @@ -45,7 +45,7 @@ export const MapProvider: React.FC = ({ children }) => { setLoading(true) try { const response = await axios.get(fetchUrl) - const nodes = response.data + const nodes = response?.data?.locations || response?.data setData(nodes) } catch (err) {