Skip to content

Commit e67124f

Browse files
sagor999roboquat
authored andcommitted
[server] fix using snapshotBucketId when it is undefined or empty
1 parent ad64205 commit e67124f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ export class WorkspaceStarter {
14241424
}
14251425

14261426
const volumeSnapshotId =
1427-
SnapshotContext.is(workspace.context) || WithPrebuild.is(workspace.context)
1427+
((SnapshotContext.is(workspace.context) || WithPrebuild.is(workspace.context)) && workspace.context.snapshotBucketId !== undefined && workspace.context.snapshotBucketId != "")
14281428
? workspace.context.snapshotBucketId
14291429
: lastValidWorkspaceInstanceId;
14301430

0 commit comments

Comments
 (0)