diff --git a/src/components/shared/TableFilters.tsx b/src/components/shared/TableFilters.tsx index 22e7de2d29..d212bb9f40 100644 --- a/src/components/shared/TableFilters.tsx +++ b/src/components/shared/TableFilters.tsx @@ -470,7 +470,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 @@ -493,7 +493,7 @@ const FilterSwitch = ({ handleDate(date as Date | null)} // FixMe: See above