fix: getBlocksuiteWorkspace remove check

This commit is contained in:
alt0
2023-01-11 20:55:08 +08:00
parent 2d1fd3a083
commit 15bdd2f31e

View File

@@ -122,8 +122,8 @@ export class DataCenter {
* @param {string} workspaceId workspace id * @param {string} workspaceId workspace id
*/ */
private _getBlocksuiteWorkspace(workspaceId: string) { private _getBlocksuiteWorkspace(workspaceId: string) {
const workspaceInfo = this._workspaceUnitCollection.find(workspaceId); // const workspaceInfo = this._workspaceUnitCollection.find(workspaceId);
assert(workspaceInfo, 'Workspace not found'); // assert(workspaceInfo, 'Workspace not found');
return ( return (
// this._workspaceInstances.get(workspaceId) || // this._workspaceInstances.get(workspaceId) ||
createBlocksuiteWorkspace(workspaceId) createBlocksuiteWorkspace(workspaceId)