-
-
-
-
-
-
-
-
-
+
) }
{
>
{ isDashboardShown
? renderColumns()
- : isTaskListEnabled && renderTaskList()
- }
+ : isTaskListEnabled && renderTaskList() }
);
};
@@ -143,6 +141,7 @@ export default compose(
withSelect( ( select ) => {
const {
getOptions,
+ getUndoDismissRequesting,
isGetOptionsRequesting,
} = select( 'wc-api' );
@@ -151,14 +150,19 @@ export default compose(
'woocommerce_task_list_complete',
'woocommerce_task_list_hidden',
] );
-
+ const { isUndoRequesting } = getUndoDismissRequesting();
return {
+ isUndoRequesting,
requestingTaskList: isGetOptionsRequesting( [
'woocommerce_task_list_complete',
'woocommerce_task_list_hidden',
] ),
- taskListComplete: get( options, [ 'woocommerce_task_list_complete' ] ),
- taskListHidden: get( options, [ 'woocommerce_task_list_hidden' ] ) === 'yes',
+ taskListComplete: get( options, [
+ 'woocommerce_task_list_complete',
+ ] ),
+ taskListHidden:
+ get( options, [ 'woocommerce_task_list_hidden' ] ) ===
+ 'yes',
};
}
diff --git a/plugins/woocommerce-admin/client/homepage/test/index.js b/plugins/woocommerce-admin/client/homepage/test/index.js
index 1cbe7e2e380..2ebff901dda 100644
--- a/plugins/woocommerce-admin/client/homepage/test/index.js
+++ b/plugins/woocommerce-admin/client/homepage/test/index.js
@@ -10,6 +10,9 @@ jest.mock( 'homepage/stats-overview', () => jest.fn().mockReturnValue( null ) );
// We aren't testing the