fix: after load workspace, we need to close other workspace, not detory.
This commit is contained in:
1 parent
c7f974ed77
commit
48d355ee72
1 file changed
+3
-1
@@ -164,7 +164,9 @@ export class DataCenter {
|
|||||||
this._workspaceInstances.set(workspaceId, workspace);
|
this._workspaceInstances.set(workspaceId, workspace);
|
||||||
await provider.warpWorkspace(workspace);
|
await provider.warpWorkspace(workspace);
|
||||||
this._workspaceUnitCollection.workspaces.forEach(workspaceUnit => {
|
this._workspaceUnitCollection.workspaces.forEach(workspaceUnit => {
|
||||||
workspaceUnit.setBlocksuiteWorkspace(null);
|
const provider = this.providerMap.get(workspaceUnit.provider);
|
||||||
|
assert(provider);
|
||||||
|
provider.closeWorkspace(workspaceUnit.id);
|
||||||
});
|
});
|
||||||
workspaceUnit.setBlocksuiteWorkspace(workspace);
|
workspaceUnit.setBlocksuiteWorkspace(workspace);
|
||||||
return workspaceUnit;
|
return workspaceUnit;
|
||||||
|
|||||||
Reference in new issue
Block a user