Skip to content

Commit e089743

Browse files
committed
Prevent updating workspace when starting
We should only update the workspace when explicitly asked, which we do elsewhere by calling updateWorkspaceVersion(). Fixes #183.
1 parent 863cf74 commit e089743

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/remote.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ export class Remote {
148148
buildComplete = r
149149
}),
150150
)
151-
const template = await getTemplate(this.storage.workspace.template_id)
152151
this.storage.workspace = {
153152
...this.storage.workspace,
154-
latest_build: await startWorkspace(this.storage.workspace.id, template.active_version_id),
153+
latest_build: await startWorkspace(
154+
this.storage.workspace.id,
155+
this.storage.workspace.latest_build.template_version_id,
156+
),
155157
}
156158
}
157159

0 commit comments

Comments
 (0)