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) => {