diff --git a/src/components/shared/TableFilters.tsx b/src/components/shared/TableFilters.tsx index a6c81f433b..01e311e9b6 100644 --- a/src/components/shared/TableFilters.tsx +++ b/src/components/shared/TableFilters.tsx @@ -469,7 +469,7 @@ const FilterSwitch = ({ autoFocus={true} inputRef={startDateRef} className="small-search start-date" - value={startDate} + value={startDate ?? null} format="dd/MM/yyyy" onChange={(date) => handleDate(date as Date | null, true)} // FixMe: onAccept does not trigger if the already set value is the same as the selected value @@ -492,7 +492,7 @@ const FilterSwitch = ({ handleDate(date as Date | null)} // FixMe: See above