8000 fix: create and read workspace page by presleyp · Pull Request #1294 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: create and read workspace page #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 6, 2022
Prev Previous commit
Next Next commit
Fix api call
  • Loading branch information
presleyp committed May 4, 2022
commit b0e4b5ada280864e5fd7e504e51e8b681d0bfd58
4 changes: 2 additions & 2 deletions site/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const getUsers = async (): Promise<TypesGen.User[]> => {
return response.data
}

export const getOrganization = async (): Promise<Types.Organization> => {
const response = await axios.get<Types.Organization>(`/api/v2/organizations/organizationId`)
export const getOrganization = async (organizationId: string): Promise<Types.Organization> => {
const response = await axios.get<Types.Organization>(`/api/v2/organizations/${organizationId}`)
return response.data
}

Expand Down
0