fix: deepscan error (#733)

This commit is contained in:
zuomeng wang authored and GitHub committed 2023-01-13 07:54:21 +00:00
1 parent ba9a57d4ae
commit 21d24ad542
4 files changed
+9 -6

No files matched your search

+3 -1
View File
@@ -150,7 +150,9 @@ export class DataCenter {
* @param {string} workspaceId workspace id
* @returns {Promise<WorkspaceUnit>}
*/
public async loadWorkspace(workspaceId: string) {
public async loadWorkspace(
workspaceId: string
): Promise<WorkspaceUnit | null> {
const workspaceUnit = this._workspaceUnitCollection.find(workspaceId);
assert(workspaceUnit, 'Workspace not found');
const currentProvider = this.providerMap.get(workspaceUnit.provider);