diff --git a/frontend/src/core/components/shared/config/configSections/audit/AuditEventsTable.tsx b/frontend/src/core/components/shared/config/configSections/audit/AuditEventsTable.tsx index c339221af..a04c676df 100644 --- a/frontend/src/core/components/shared/config/configSections/audit/AuditEventsTable.tsx +++ b/frontend/src/core/components/shared/config/configSections/audit/AuditEventsTable.tsx @@ -131,8 +131,8 @@ const AuditEventsTable: React.FC = () => { - handleFilterChange('startDate', value ? value.toISOString() : undefined) + onChange={(value: string | null) => + handleFilterChange('startDate', value ?? undefined) } clearable style={{ flex: 1, minWidth: 150 }} @@ -141,8 +141,8 @@ const AuditEventsTable: React.FC = () => { - handleFilterChange('endDate', value ? value.toISOString() : undefined) + onChange={(value: string | null) => + handleFilterChange('endDate', value ?? undefined) } clearable style={{ flex: 1, minWidth: 150 }} diff --git a/frontend/src/core/components/shared/config/configSections/audit/AuditExportSection.tsx b/frontend/src/core/components/shared/config/configSections/audit/AuditExportSection.tsx index 025f10ba8..695c2e914 100644 --- a/frontend/src/core/components/shared/config/configSections/audit/AuditExportSection.tsx +++ b/frontend/src/core/components/shared/config/configSections/audit/AuditExportSection.tsx @@ -144,8 +144,8 @@ const AuditExportSection: React.FC = () => { - handleFilterChange('startDate', value ? value.toISOString() : undefined) + onChange={(value: string | null) => + handleFilterChange('startDate', value ?? undefined) } clearable style={{ flex: 1, minWidth: 200 }} @@ -154,8 +154,8 @@ const AuditExportSection: React.FC = () => { - handleFilterChange('endDate', value ? value.toISOString() : undefined) + onChange={(value: string | null) => + handleFilterChange('endDate', value ?? undefined) } clearable style={{ flex: 1, minWidth: 200 }}