diff --git a/components/widgets/utils/helpers.js b/components/widgets/utils/helpers.js index 6d718e5917..81564c2825 100644 --- a/components/widgets/utils/helpers.js +++ b/components/widgets/utils/helpers.js @@ -1,8 +1,10 @@ -const isAreaComputed = status => status === 'saved'; -const isGlobalArea = type => type === 'global'; -const isCountryArea = type => type === 'country'; +const isAreaComputed = (status) => status === 'saved'; +const isGlobalArea = (type) => type === 'global'; +const isCountryArea = (type) => type === 'country'; +const isWdpaArea = (type) => type === 'wdpa'; -export const shouldQueryPrecomputedTables = params => +export const shouldQueryPrecomputedTables = (params) => isAreaComputed(params.status) || isGlobalArea(params.type) || - isCountryArea(params.type); + isCountryArea(params.type) || + isWdpaArea(params.type);