From 586918dddb947e35a2385b0f9baf360acd74e444 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 18 Jul 2025 18:35:32 -0700 Subject: [PATCH] ui fix linting --- ui/litellm-dashboard/src/components/all_keys_table.tsx | 3 +++ ui/litellm-dashboard/src/components/view_key_table.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ui/litellm-dashboard/src/components/all_keys_table.tsx b/ui/litellm-dashboard/src/components/all_keys_table.tsx index dd5b469d7d6..775d84cc56e 100644 --- a/ui/litellm-dashboard/src/components/all_keys_table.tsx +++ b/ui/litellm-dashboard/src/components/all_keys_table.tsx @@ -57,6 +57,7 @@ interface AllKeysTableProps { selectedKeyAlias: string | null; setSelectedKeyAlias: Setter; accessToken: string | null; + setAccessToken: (token: string) => void; userID: string | null; userRole: string | null; organizations: Organization[] | null; @@ -135,6 +136,7 @@ export function AllKeysTable({ selectedKeyAlias, setSelectedKeyAlias, accessToken, + setAccessToken, userID, userRole, organizations, @@ -621,6 +623,7 @@ export function AllKeysTable({ if (refresh) refresh(); // Minimal fix: refresh the full key list after a delete }} accessToken={accessToken} + setAccessToken={setAccessToken} userID={userID} userRole={userRole} teams={allTeams} diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsx index 2faed3a81f7..f7e57ead243 100644 --- a/ui/litellm-dashboard/src/components/view_key_table.tsx +++ b/ui/litellm-dashboard/src/components/view_key_table.tsx @@ -93,6 +93,7 @@ interface ViewKeyTableProps { userID: string; userRole: string | null; accessToken: string; + setAccessToken: (token: string) => void; selectedTeam: any | null; setSelectedTeam: React.Dispatch>; data: any[] | null; @@ -144,6 +145,7 @@ const ViewKeyTable: React.FC = ({ userID, userRole, accessToken, + setAccessToken, selectedTeam, setSelectedTeam, data, @@ -386,6 +388,7 @@ const ViewKeyTable: React.FC = ({ selectedTeam={selectedTeam} setSelectedTeam={setSelectedTeam} accessToken={accessToken} + setAccessToken={setAccessToken} userID={userID} userRole={userRole} organizations={organizations}