mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(ui): fetch organizations in Usage page for org_admin users
Signed-off-by: ItsRoy69 <jyotirmoyroy649@gmail.com>
This commit is contained in:
parent
5544803b35
commit
90db2eb115
1 changed files with 3 additions and 1 deletions
|
|
@ -3,12 +3,14 @@
|
|||
import UsagePageView from "@/components/UsagePage/components/UsagePageView";
|
||||
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
|
||||
import useTeams from "@/app/(dashboard)/hooks/useTeams";
|
||||
import { useOrganizations } from "@/app/(dashboard)/hooks/organizations/useOrganizations";
|
||||
|
||||
const UsagePage = () => {
|
||||
const { accessToken, userRole, userId, premiumUser } = useAuthorized();
|
||||
const { teams } = useTeams();
|
||||
const { data: organizations } = useOrganizations();
|
||||
|
||||
return <UsagePageView teams={teams ?? []} organizations={[]} />;
|
||||
return <UsagePageView teams={teams ?? []} organizations={organizations ?? []} />;
|
||||
};
|
||||
|
||||
export default UsagePage;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue