Skip to content

Commit

Permalink
Merge pull request #4895 from wri/develop
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
willian-viana authored Dec 5, 2024
2 parents f23f583 + ec43aa2 commit 7cf117f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const parseData = createSelector(
areaLoss: summedPlatationsLoss || 0,
totalLoss: totalLossForYear.area || 0,
outsideCo2Loss:
totalLossByYear[d.year][0].emissions - summedPlatationsEmissions,
totalLossByYear[d.year]?.[0]?.emissions -
summedPlatationsEmissions,
co2Loss: summedPlatationsEmissions || 0,
};
return returnData;
Expand Down

0 comments on commit 7cf117f

Please sign in to comment.