From 502b600d9b673b85869085b34985dda5d702bc76 Mon Sep 17 00:00:00 2001 From: Willian Viana Date: Wed, 10 Jan 2024 15:33:20 -0300 Subject: [PATCH] fix(fao-reforestation): use async/await to download functionality --- components/widgets/forest-change/fao-reforest/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/widgets/forest-change/fao-reforest/index.js b/components/widgets/forest-change/fao-reforest/index.js index 6bdc7bb417..e5171bef5a 100644 --- a/components/widgets/forest-change/fao-reforest/index.js +++ b/components/widgets/forest-change/fao-reforest/index.js @@ -49,6 +49,8 @@ export default { return hasCountryData ? data : {}; }), - getDataURL: (params) => [getFAOReforest({ ...params, download: true })], + getDataURL: async (params) => [ + await getFAOReforest({ ...params, download: true }), + ], getWidgetProps, };