build: new ui build (#7685)

This commit is contained in:
Krish Dholakia 2025-01-10 22:12:17 -08:00 committed by GitHub
parent 1f7f11f054
commit 599730960a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 28 additions and 27 deletions

View file

@ -151,7 +151,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
teams.forEach(team => {
// For default team or when user is not admin, use personal keys (data)
if (team.team_id === "default-team" || !isUserTeamAdmin(team)) {
if (selectedTeam && selectedTeam.team_id === team.team_id) {
if (selectedTeam && selectedTeam.team_id === team.team_id && data) {
allKeys = [...allKeys, ...data.filter(key => key.team_id === team.team_id)];
}
}
@ -164,7 +164,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
});
// If no team is selected, show all accessible keys
if (!selectedTeam) {
if (!selectedTeam && data) {
const personalKeys = data.filter(key => !key.team_id || key.team_id === "default-team");
const adminTeamKeys = teams
.filter(team => isUserTeamAdmin(team))
@ -909,7 +909,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
</TableRow>
</TableHead>
<TableBody>
{all_keys_to_display.map((item) => {
{all_keys_to_display && all_keys_to_display.map((item) => {
console.log(item);
// skip item if item.team_id == "litellm-dashboard"
if (item.team_id === "litellm-dashboard") {