From 37db367ba62aee809a6c817dff00cc06681f8091 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 28 Mar 2024 09:07:10 -0700 Subject: [PATCH] (fix) creating key for a team --- ui/litellm-dashboard/src/components/create_key_button.tsx | 7 ++++--- ui/litellm-dashboard/src/components/user_dashboard.tsx | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index 3f2d8e7b5..7ce84b1f5 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -18,7 +18,7 @@ const { Option } = Select; interface CreateKeyProps { userID: string; - teamID: string | null; + team: any | null; userRole: string | null; accessToken: string; data: any[] | null; @@ -27,7 +27,7 @@ interface CreateKeyProps { const CreateKey: React.FC = ({ userID, - teamID, + team, userRole, accessToken, data, @@ -130,7 +130,8 @@ const CreateKey: React.FC = ({ diff --git a/ui/litellm-dashboard/src/components/user_dashboard.tsx b/ui/litellm-dashboard/src/components/user_dashboard.tsx index d164a35a1..ecbd0f6f9 100644 --- a/ui/litellm-dashboard/src/components/user_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/user_dashboard.tsx @@ -203,6 +203,8 @@ const UserDashboard: React.FC = ({ ); } + console.log("inside user dashboard, selected team", selectedTeam); + return (
@@ -220,8 +222,9 @@ const UserDashboard: React.FC = ({ setData={setKeys} />