10000 feat: resources card by presleyp · Pull Request #1627 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: resources card #1627

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 17 commits into from
May 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension 8000

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix assignment
  • Loading branch information
presleyp committed May 20, 2022
commit 85a869d2659d3f2d59599cb38b3132c1aa56c570
8 changes: 4 additions & 4 deletions site/src/xServices/workspace/workspaceXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,8 @@ export const workspaceMachine = createMachine(
assign({
refreshTemplateError: undefined,
}),
assignResources: (_, event) =>
assign({
resources: event.data,
assignResources: assign({
resources: (_, event) => event.data,
}),
assignGetResourcesError: (_, event) =>
assign({
Expand Down Expand Up @@ -469,7 +468,8 @@ export const workspaceMachine = createMachine(
},
getResources: async (context) => {
if (context.workspace) {
return await API.getWorkspaceResources(context.workspace.latest_build.id)
const resources = await API.getWorkspaceResources(context.workspace.latest_build.id)
return resources
} else {
throw Error("Cannot fetch workspace resources without workspace")
}
Expand Down
0