mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
ui linting fix
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s
This commit is contained in:
parent
618335a7d9
commit
c5606c06ae
3 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
}));
|
||||
}
|
||||
},
|
||||
];
|
||||
|
|
|
@ -27,7 +27,7 @@ export const fetchAllKeyAliases = async (accessToken: string | null): Promise<st
|
|||
|
||||
// Extract aliases from this page
|
||||
const pageAliases = response.keys
|
||||
.map(key => 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<st
|
|||
}
|
||||
|
||||
// Remove duplicates
|
||||
return [...new Set(allAliases)];
|
||||
return Array.from(new Set(allAliases));
|
||||
} catch (error) {
|
||||
console.error("Error fetching all key aliases:", error);
|
||||
return [];
|
||||
|
@ -66,8 +66,7 @@ export const fetchAllTeams = async (accessToken: string | null, organizationId?:
|
|||
const response = await teamListCall(
|
||||
accessToken,
|
||||
organizationId || null,
|
||||
currentPage,
|
||||
100 // larger page size to reduce number of requests
|
||||
null,
|
||||
);
|
||||
|
||||
// Add teams from this page
|
||||
|
@ -103,9 +102,7 @@ export const fetchAllOrganizations = async (accessToken: string | null): Promise
|
|||
|
||||
while (hasMorePages) {
|
||||
const response = await organizationListCall(
|
||||
accessToken,
|
||||
currentPage,
|
||||
100 // larger page size to reduce number of requests
|
||||
accessToken
|
||||
);
|
||||
|
||||
// Add organizations from this page
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { useEffect, useState } from "react";
|
||||
import { KeyResponse } from "../key_team_helpers/key_list";
|
||||
import { Team, Organization } from "../networking";
|
||||
import { Organization } from "../networking";
|
||||
import { Team } from "../key_team_helpers/key_list";
|
||||
|
||||
export interface FilterState {
|
||||
'Team ID': string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue