diff --git a/ui/litellm-dashboard/src/components/all_keys_table.tsx b/ui/litellm-dashboard/src/components/all_keys_table.tsx index 5911abd6355..75820d093b3 100644 --- a/ui/litellm-dashboard/src/components/all_keys_table.tsx +++ b/ui/litellm-dashboard/src/components/all_keys_table.tsx @@ -328,10 +328,12 @@ export function AllKeysTable({ org.organization_id?.toLowerCase().includes(searchText.toLowerCase()) ?? false ); - return filteredOrgs.map(org => ({ - label: `${org.organization_id || 'Unknown'} (${org.organization_id})`, - value: org.organization_id - })); + return filteredOrgs + .filter(org => org.organization_id !== null && org.organization_id !== undefined) + .map(org => ({ + label: `${org.organization_id || 'Unknown'} (${org.organization_id})`, + value: org.organization_id as string + })); } }, ]; diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts b/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts index 70a78ffb03f..727bcdeb703 100644 --- a/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts +++ b/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts @@ -27,7 +27,7 @@ export const fetchAllKeyAliases = async (accessToken: string | null): Promise key.key_alias) + .map((key: any) => key.key_alias) .filter(Boolean) as string[]; allAliases = [...allAliases, ...pageAliases]; @@ -41,7 +41,7 @@ export const fetchAllKeyAliases = async (accessToken: string | null): Promise