Fix fatal error on homescreen when clicking add products task (https://github.com/woocommerce/woocommerce-admin/pull/6117)

This commit is contained in:
Joel Thiessen 2021-01-20 16:31:34 -08:00 committed by GitHub
parent 828ffc8a1a
commit ecf3e61cbd
2 changed files with 4 additions and 6 deletions

View File

@ -416,9 +416,8 @@ export default compose(
const requestingTaskListOptions =
isResolving( 'getOption', [ 'woocommerce_task_list_complete' ] ) ||
isResolving( 'getOption', [ 'woocommerce_task_list_hidden' ] );
const trackedCompletedTasks = getOption(
'woocommerce_task_list_tracked_completed_tasks'
);
const trackedCompletedTasks =
getOption( 'woocommerce_task_list_tracked_completed_tasks' ) || [];
return {
hasUnreadNotes,

View File

@ -175,9 +175,8 @@ export default compose(
} = select( PLUGINS_STORE_NAME );
const profileItems = getProfileItems();
const trackedCompletedTasks = getOption(
'woocommerce_task_list_tracked_completed_tasks'
);
const trackedCompletedTasks =
getOption( 'woocommerce_task_list_tracked_completed_tasks' ) || [];
const { general: generalSettings = {} } = getSettings( 'general' );
const countryCode = getCountryCode(