Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce211fd

Browse files
fix: Do not update workspace on start (#3984)
1 parent 8a94b72 commit ce211fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/xServices/workspace/workspaceXService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,10 @@ export const workspaceMachine = createMachine(
526526
},
527527
startWorkspace: async (context) => {
528528
if (context.workspace) {
529-
return await API.startWorkspace(context.workspace.id, context.template?.active_version_id)
529+
return await API.startWorkspace(
530+
context.workspace.id,
531+
context.workspace.latest_build.template_version_id,
532+
)
530533
} else {
531534
throw Error("Cannot start workspace without workspace id")
532535
}

0 commit comments

Comments
 (0)