mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Do not update workspace on start (#3984)
This commit is contained in:
@@ -526,7 +526,10 @@ export const workspaceMachine = createMachine(
|
||||
},
|
||||
startWorkspace: async (context) => {
|
||||
if (context.workspace) {
|
||||
return await API.startWorkspace(context.workspace.id, context.template?.active_version_id)
|
||||
return await API.startWorkspace(
|
||||
context.workspace.id,
|
||||
context.workspace.latest_build.template_version_id,
|
||||
)
|
||||
} else {
|
||||
throw Error("Cannot start workspace without workspace id")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user