Skip to content

Commit 692c766

Browse files
committed
[server] fix using snapshotBucketId when it is undefined or empty
1 parent c0c0d7e commit 692c766

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)