mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix: ensure return activeWorkspaceId
This commit is contained in:
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user