Skip to content

Commit

Permalink
Merge pull request #4893 from wri/fix/FLAG-1208
Browse files Browse the repository at this point in the history
[FLAG-1208]: Dashboard error in the forest change tab for Gujarat region in India
  • Loading branch information
willian-viana authored Dec 4, 2024
2 parents ed569a8 + 3d42bbe commit ec43aa2
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 ec43aa2

Please sign in to comment.