fix: Do not update workspace on start (#3984)

This commit is contained in:
Bruno Quaresma
2022-09-09 12:56:41 -07:00
committed by GitHub
parent 8a94b72c7d
commit ce211fd8f5
@@ -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")
}