Skip to content

Commit

Permalink
[server] fix using snapshotBucketId when it is undefined or empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 committed Aug 12, 2022
1 parent c0c0d7e commit 692c766
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)
((SnapshotContext.is(workspace.context) || WithPrebuild.is(workspace.context)) && workspace.context.snapshotBucketId !== undefined && workspace.context.snapshotBucketId != "")
? workspace.context.snapshotBucketId
: lastValidWorkspaceInstanceId;

Expand Down

0 comments on commit 692c766

Please sign in to comment.