Update frontend/src/core/components/shared/config/configSections/audit/AuditEventsTable.tsx

Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
Anthony Stirling 2025-11-05 16:00:28 +00:00 committed by GitHub
parent f1fec4e0d4
commit d38e5692e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,7 @@ const AuditEventsTable: React.FC = () => {
fetchEvents();
}, [filters, currentPage]);
const handleFilterChange = (key: keyof AuditFilters, value: any) => {
const handleFilterChange = <K extends keyof AuditFilters>(key: K, value: AuditFilters[K]) => {
setFilters((prev) => ({ ...prev, [key]: value }));
setCurrentPage(1);
};