From 6be4c98f7c7e8bdc0aad0d370d5a90eaa529f239 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 31 Oct 2025 09:42:56 +0000 Subject: [PATCH] lint typecheck --- .../config/configSections/audit/AuditEventsTable.tsx | 8 ++++---- .../config/configSections/audit/AuditExportSection.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 }}