Skip to content

Commit 0c66cfe

Browse files
committed
fix: update workspace form fields when switching templates
resolves #1716
1 parent c5f4d80 commit 0c66cfe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"TCGETS",
6161
"tcpip",
6262
"TCSETS",
63+
"templateversions",
6364
"testid",
6465
"tfexec",
6566
"tfjson",

site/src/xServices/createWorkspace/createWorkspaceXService.ts

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export const createWorkspaceMachine = createMachine(
4545
},
4646
},
4747
tsTypes: {} as import("./createWorkspaceXService.typegen").Typegen0,
48+
on: {
49+
SELECT_TEMPLATE: {
50+
actions: ["assignSelectedTemplate"],
51+
target: "gettingTemplateSchema",
52+
},
53+
},
4854
states: {
4955
gettingTemplates: {
5056
invoke: {

0 commit comments

Comments
 (0)