From f2a0566d0cd94ebec167222b59a905f4a02b0ed9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 13 Mar 2025 21:40:44 -0700 Subject: [PATCH] ui new build --- .../key_team_helpers/transform_key_info.tsx | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/transform_key_info.tsx b/ui/litellm-dashboard/src/components/key_team_helpers/transform_key_info.tsx index 49e248e2bc4..dda6b657720 100644 --- a/ui/litellm-dashboard/src/components/key_team_helpers/transform_key_info.tsx +++ b/ui/litellm-dashboard/src/components/key_team_helpers/transform_key_info.tsx @@ -3,26 +3,9 @@ import { KeyResponse } from "./key_list"; export const transformKeyInfo = (apiResponse: any): KeyResponse => { const { key, info } = apiResponse; + // Simply combine the key with all info fields return { token: key, - key_name: info.key_name, - key_alias: info.key_alias, - spend: info.spend, - expires: info.expires, - models: info.models, - aliases: info.aliases, - config: info.config, - user_id: info.user_id, - team_id: info.team_id, - permissions: info.permissions, - max_parallel_requests: info.max_parallel_requests, - metadata: info.metadata, - tpm_limit: info.tpm_limit, - rpm_limit: info.rpm_limit, - max_budget: info.max_budget, - budget_duration: info.budget_duration, - organization_id: info.organization_id, - created_at: info.created_at, - litellm_budget_table: info.litellm_budget_table, - }; + ...info + } as KeyResponse; }; \ No newline at end of file