From 8ee1939ea5c205fccd67fbcb3fb1bccc6aa868a9 Mon Sep 17 00:00:00 2001 From: yashin4112 Date: Tue, 5 Aug 2025 16:46:29 +0530 Subject: [PATCH] comment resolved: if condition added on handleFileChnage --- ui/src/components/AuditLogs/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/components/AuditLogs/index.tsx b/ui/src/components/AuditLogs/index.tsx index ea8bdd154..5a139f049 100644 --- a/ui/src/components/AuditLogs/index.tsx +++ b/ui/src/components/AuditLogs/index.tsx @@ -72,7 +72,9 @@ const AuditLogs: React.FC = () => { { label: 'Entries', value: 'Entries_Select_feild' } ]; setFileOptions(predefinedOptions); - handleFileChange(predefinedOptions?.[0]); + if (predefinedOptions?.length > 0) { + handleFileChange(predefinedOptions?.[0]); + } } }; const handleStackChange = async (selectedOption: StackOption | null) => {