Skip to content

Commit

Permalink
Update components/server/src/workspace/workspace-starter.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Brennan <[email protected]>
  • Loading branch information
sagor999 and kylos101 authored Aug 12, 2022
1 parent 692c766 commit 14b3920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/src/workspace/workspace-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ export class WorkspaceStarter {
}

const volumeSnapshotId =
((SnapshotContext.is(workspace.context) || WithPrebuild.is(workspace.context)) && workspace.context.snapshotBucketId !== undefined && workspace.context.snapshotBucketId != "")
((SnapshotContext.is(workspace.context) || WithPrebuild.is(workspace.context)) && !!workspace.context.snapshotBucketId)
? workspace.context.snapshotBucketId
: lastValidWorkspaceInstanceId;

Expand Down

0 comments on commit 14b3920

Please sign in to comment.