diff --git a/client/apps/Planning/PlanningList.tsx b/client/apps/Planning/PlanningList.tsx index 86e1805ef..79b81fde0 100644 --- a/client/apps/Planning/PlanningList.tsx +++ b/client/apps/Planning/PlanningList.tsx @@ -187,15 +187,11 @@ export class PlanningListComponent extends React.PureComponent { { - const dateFilter = currentSearch.advancedSearch?.dates?.start; + const dateFilter = currentSearch.advancedSearch?.dates?.start ?? moment().date(); - if (dateFilter != null) { - return groups.filter((group) => - moment(group.date).isSameOrAfter(dateFilter), - ); - } - - return groups; + return groups.filter((group) => + moment(group.date).isSameOrAfter(dateFilter), + ); })()} onItemClick={openPreview} onDoubleClick={edit}