Skip to content

Commit

Permalink
Merge pull request #2593 from cisagov/bugfix/update-header-organizati…
Browse files Browse the repository at this point in the history
…ons-endpoint-for-dropdown

Update orgs endpoint to v2 in Header.tsx dropdown
  • Loading branch information
nickviola authored Feb 29, 2024
2 parents c94232d + 1ddee3f commit 7dbc75d
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 7dbc75d

Please sign in to comment.