Revert the work to sort the task list by completion. (https://github.com/woocommerce/woocommerce-admin/pull/5721)

This commit is contained in:
Sam Seay 2020-11-25 08:36:30 +13:00 committed by GitHub
parent d43e45576d
commit 68786855d3
1 changed files with 1 additions and 7 deletions

View File

@ -242,13 +242,7 @@ export function getAllTasks( {
return applyFilters(
'woocommerce_admin_onboarding_task_list',
tasks.sort( ( a, b ) => {
if ( a.completed === b.completed ) {
return 0;
}
return a.completed ? 1 : -1;
} ),
tasks,
query
);
}