Skip to content

Commit

Permalink
fix(fao-reforestation): use async/await to download functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
willian-viana committed Jan 10, 2024
1 parent e7abf0d commit 502b600
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/widgets/forest-change/fao-reforest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default {

return hasCountryData ? data : {};
}),
getDataURL: (params) => [getFAOReforest({ ...params, download: true })],
getDataURL: async (params) => [
await getFAOReforest({ ...params, download: true }),
],
getWidgetProps,
};

0 comments on commit 502b600

Please sign in to comment.