From 1ddee3f9f374dbd0b1607d4204a369def9615e36 Mon Sep 17 00:00:00 2001 From: nickviola Date: Thu, 29 Feb 2024 15:20:24 -0600 Subject: [PATCH] Update orgs endpoint to v2 in Header.tsx dropdown --- frontend/src/components/Header.tsx | 2 +- frontend/src/pages/Organizations/Organizations.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 08cf1f7e4..af4ec517a 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -215,7 +215,7 @@ const HeaderNoCtx: React.FC = (props) => { const fetchOrganizations = useCallback(async () => { try { - const rows = await apiGet('/organizations/'); + const rows = await apiGet('/v2/organizations/'); let tags: (OrganizationTag | Organization)[] = []; if (userLevel === GLOBAL_ADMIN) { tags = await apiGet('/organizations/tags'); diff --git a/frontend/src/pages/Organizations/Organizations.tsx b/frontend/src/pages/Organizations/Organizations.tsx index 68d4b086a..14307c88b 100644 --- a/frontend/src/pages/Organizations/Organizations.tsx +++ b/frontend/src/pages/Organizations/Organizations.tsx @@ -37,7 +37,7 @@ export const Organizations: React.FC = () => { const fetchOrganizations = useCallback(async () => { try { - const rows = await apiGet('/organizations/'); + const rows = await apiGet('/v2/organizations/'); setOrganizations(rows); } catch (e) { console.error(e);