Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: Audit log custom date picker

Piyush Gupta504a8c1d0197
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx
index 71d418c9d8..5fa38cdcec 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx
@@ -205,7 +205,10 @@ export const LogsDateFilter = ({ setFilter, filter, timezone, setTimezone }: Pro
<Input
type="number"
value={duration || "1"}
- onChange={(val) => field.onChange(`${val}${unitOfTime}`)}
+ onChange={(val) => {
+ const durationVal = val.target.value;
+ field.onChange(`${durationVal}${unitOfTime}`);
+ }}
max={60}
min={1}
/>