diff --git a/client/apps/Planning/PlanningList.tsx b/client/apps/Planning/PlanningList.tsx index 3a2d7e932..86e1805ef 100644 --- a/client/apps/Planning/PlanningList.tsx +++ b/client/apps/Planning/PlanningList.tsx @@ -28,6 +28,7 @@ import {ITEM_TYPE} from '../../constants'; import {ListPanel} from '../../components/Main'; import {PlanningListSubNav} from './PlanningListSubNav'; +import moment from 'moment'; interface IProps { groups: Array<{ @@ -185,7 +186,17 @@ export class PlanningListComponent extends React.PureComponent { { + const dateFilter = currentSearch.advancedSearch?.dates?.start; + + if (dateFilter != null) { + return groups.filter((group) => + moment(group.date).isSameOrAfter(dateFilter), + ); + } + + return groups; + })()} onItemClick={openPreview} onDoubleClick={edit} agendas={agendas}