From ba49e494882656d2041aac3fbdc7e7d16dc94a27 Mon Sep 17 00:00:00 2001 From: Piyush Gupta Date: Wed, 8 Oct 2025 00:38:53 +0530 Subject: [PATCH] fix: handle undefined duration value in LogsDateFilter component --- .../organization/AuditLogsPage/components/LogsDateFilter.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx index d791b64cf..b9f9a1cd6 100644 --- a/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx +++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsDateFilter.tsx @@ -211,7 +211,9 @@ export const LogsDateFilter = ({ setFilter, filter, timezone, setTimezone }: Pro type="number" value={duration} onChange={(val) => { - const durationVal = val.target.value; + const durationVal = val.target.value + ? Number(val.target.value) + : undefined; field.onChange(`${durationVal}${unitOfTime}`); }} max={60}