Skip to content

Commit

Permalink
fix: update workspace form fields when switching templates (#1761)
Browse files Browse the repository at this point in the history
resolves #1716
  • Loading branch information
Kira-Pilot committed May 26, 2022
1 parent 31b819e commit 9a70c34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"TCGETS",
"tcpip",
"TCSETS",
"templateversions",
"testid",
"tfexec",
"tfjson",
Expand Down
6 changes: 6 additions & 0 deletions site/src/xServices/createWorkspace/createWorkspaceXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export const createWorkspaceMachine = createMachine(
},
},
tsTypes: {} as import("./createWorkspaceXService.typegen").Typegen0,
on: {
SELECT_TEMPLATE: {
actions: ["assignSelectedTemplate"],
target: "gettingTemplateSchema",
},
},
states: {
gettingTemplates: {
invoke: {
Expand Down

0 comments on commit 9a70c34

Please sign in to comment.