fix: workspace unit setBlocksuiteWorkspace support null
This commit is contained in:
1 parent
8e091a37e2
commit
7e608e48ec
1 file changed
+1
-1
@@ -42,7 +42,7 @@ export class WorkspaceUnit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setBlocksuiteWorkspace(blocksuiteWorkspace: BlocksuiteWorkspace | null) {
|
setBlocksuiteWorkspace(blocksuiteWorkspace: BlocksuiteWorkspace | null) {
|
||||||
if (blocksuiteWorkspace?.room !== this.id) {
|
if (blocksuiteWorkspace && blocksuiteWorkspace?.room !== this.id) {
|
||||||
throw new Error('Workspace id inconsistent.');
|
throw new Error('Workspace id inconsistent.');
|
||||||
}
|
}
|
||||||
this._blocksuiteWorkspace = blocksuiteWorkspace;
|
this._blocksuiteWorkspace = blocksuiteWorkspace;
|
||||||
|
|||||||
Reference in new issue
Block a user