fix: ensure return activeWorkspaceId

This commit is contained in:
DiamondThree
2023-01-10 21:08:28 +08:00
parent f1ea2ee691
commit ed46eb58fd
6 changed files with 15 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ export class WorkspaceMetaCollection extends Observable<'change'> {
if (this._workspacesMap.has(workspace.id)) {
throw new Error(`Duplicate workspace id.`);
}
this._workspacesMap.set(workspace.id, workspace);
this._workspacesMap.set(workspace.id.toString(), workspace);
scopedWorkspaceIds.add(workspace.id);
this.emit('change', [