fix: multiple add same workspace error
This commit is contained in:
1 parent
8b757f538e
commit
362b6f4238
1 file changed
+2
-1
@@ -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