mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
fix: workspace unit setBlocksuiteWorkspace support null
This commit is contained in:
@@ -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