mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix: multiple add same workspace error
This commit is contained in:
@@ -61,7 +61,8 @@ export class WorkspaceUnitCollection {
|
||||
|
||||
const add = (workspace: WorkspaceUnitCtorParams) => {
|
||||
if (this._workspaceUnitMap.has(workspace.id)) {
|
||||
throw new Error(`Duplicate workspace id.`);
|
||||
// FIXME: multiple add same workspace
|
||||
return;
|
||||
}
|
||||
|
||||
const workspaceUnit = new WorkspaceUnit(workspace);
|
||||
|
||||
Reference in New Issue
Block a user