Skip to content

Commit

Permalink
Merge pull request #4913 from wri/develop
Browse files Browse the repository at this point in the history
PROD Deploy 2025-01-14 01:48pm EST
  • Loading branch information
wri7tno authored Jan 14, 2025
2 parents 6c333d6 + e56b581 commit 1fb2c3b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions layouts/dashboards/components/header/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@ export const getDownloadLink = createSelector(
const { admin } = area || {};
const { adm0 } = admin || {};

return `https://gfw2-data.s3.amazonaws.com/country-pages/country_stats/download/${DOWNLOAD_VERSION}/${
adm0 || location?.adm0 || 'global'
}.xlsx`;
if (location.type === 'country') {
return `https://gfw2-data.s3.amazonaws.com/country-pages/country_stats/download/${DOWNLOAD_VERSION}/${
adm0 || location?.adm0 || 'global'
}.xlsx`;
}

return `https://gfw2-data.s3.amazonaws.com/country-pages/country_stats/download/gfw_2023_statistics_summary_v30102024.xlsx`;
}
);

Expand Down

0 comments on commit 1fb2c3b

Please sign in to comment.