Skip to content

Commit

Permalink
fix(fao-reforestation): use getSortedData instead getData to show rig…
Browse files Browse the repository at this point in the history
…ht rank
  • Loading branch information
willian-viana committed Jan 10, 2024
1 parent 502b600 commit 09f4f5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/widgets/forest-change/fao-reforest/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export const getSortedData = createSelector([getData], (data) => {
});

export const parseData = createSelector(
[getData, getAdm0, getColors],
[getSortedData, getAdm0, getColors],
(data, adm0, colors) => {
if (!data || !data.length) return null;

let dataTrimmed = data;

if (adm0) {
Expand Down

0 comments on commit 09f4f5d

Please sign in to comment.