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