diff --git a/plugins/woocommerce-admin/client/marketing/hooks/useCampaignTypes.ts b/plugins/woocommerce-admin/client/marketing/hooks/useCampaignTypes.ts index 8cf9b70f8ee..4c1f82f24b3 100644 --- a/plugins/woocommerce-admin/client/marketing/hooks/useCampaignTypes.ts +++ b/plugins/woocommerce-admin/client/marketing/hooks/useCampaignTypes.ts @@ -38,7 +38,7 @@ export const useCampaignTypes = (): UseCampaignTypes => { const { invalidateResolution } = useDispatch( STORE_KEY ); const refetch = useCallback( () => { - invalidateResolution( 'getCampaignTypes' ); + invalidateResolution( 'getCampaignTypes', [] ); }, [ invalidateResolution ] ); return useSelect< UseCampaignTypes >( @@ -48,7 +48,7 @@ export const useCampaignTypes = (): UseCampaignTypes => { const campaignTypesState = getCampaignTypes< CampaignTypesState >(); return { - loading: ! hasFinishedResolution( 'getCampaignTypes' ), + loading: ! hasFinishedResolution( 'getCampaignTypes', [] ), data: campaignTypesState.data?.map( convert ), error: campaignTypesState.error, refetch,