Skip to content

Commit

Permalink
fix(tree-loss-ranked): small fix to avoid page breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Jan 6, 2025
1 parent 90cb4c3 commit 8eb8c11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const getSummedByYearsData = createSelector(
const mappedData = regions.map((region) => {
const isoLoss = Math.round(sumBy(groupedByRegion[region], 'loss')) || 0;
const regionExtent = extent.find((e) => {
return e[regionKey].toString() === region.toString(); // iso is string while adm1 and 2 are numbers
return e[regionKey]?.toString() === region.toString(); // iso is string while adm1 and 2 are numbers
});
const isoExtent = (regionExtent && regionExtent.extent) || 0;
const percentageLoss =
Expand Down

0 comments on commit 8eb8c11

Please sign in to comment.