Skip to content

Commit

Permalink
Update orgs endpoint to v2 in Header.tsx dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
nickviola committed Feb 29, 2024
1 parent c94232d commit 1ddee3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const HeaderNoCtx: React.FC<ContextType> = (props) => {

const fetchOrganizations = useCallback(async () => {
try {
const rows = await apiGet<Organization[]>('/organizations/');
const rows = await apiGet<Organization[]>('/v2/organizations/');
let tags: (OrganizationTag | Organization)[] = [];
if (userLevel === GLOBAL_ADMIN) {
tags = await apiGet<OrganizationTag[]>('/organizations/tags');
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Organizations/Organizations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Organizations: React.FC = () => {

const fetchOrganizations = useCallback(async () => {
try {
const rows = await apiGet<Organization[]>('/organizations/');
const rows = await apiGet<Organization[]>('/v2/organizations/');
setOrganizations(rows);
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 1ddee3f

Please sign in to comment.