Fix fatal error on homescreen when clicking add products task (https://github.com/woocommerce/woocommerce-admin/pull/6117)
This commit is contained in:
parent
828ffc8a1a
commit
ecf3e61cbd
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue