Skip to content

Commit

Permalink
Merge pull request #51 from oceanprotocol/Fix/locations-merge
Browse files Browse the repository at this point in the history
Prepare for country stats merge
  • Loading branch information
bogdanfazakas authored Nov 6, 2024
2 parents 89e6917 + 0505396 commit cfaf121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/MapContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const MapProvider: React.FC<MapProviderProps> = ({ 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) {
Expand Down

0 comments on commit cfaf121

Please sign in to comment.