chore: cleanup

This commit is contained in:
Daniel Hougaard
2025-01-28 01:02:18 +01:00
parent 27efc908e2
commit 939ee892e0
2 changed files with 2 additions and 3 deletions

View File

@@ -128,7 +128,6 @@ export const LogsFilter = ({
value={value}
isClearable
onChange={(e) => {
console.log(e);
if (e === null) {
setValue("secretPath", "");
}

View File

@@ -9,11 +9,11 @@ export const auditLogFilterFormSchema = z
eventType: z.nativeEnum(EventType).array(),
actor: z.string().optional(),
userAgentType: z.nativeEnum(UserAgentType),
secretPath: z.string().optional(),
startDate: z.date().optional(),
endDate: z.date().optional(),
page: z.coerce.number().optional(),
perPage: z.coerce.number().optional(),
secretPath: z.string().optional()
perPage: z.coerce.number().optional()
})
.superRefine((el, ctx) => {
if (el.endDate && el.startDate && el.endDate < el.startDate) {