There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: multiple add same workspace error
alt0362b6f42388f
diff --git a/packages/data-center/src/workspace-unit-collection.ts b/packages/data-center/src/workspace-unit-collection.tsindex 58770e2122..f385cecdca 100644--- a/packages/data-center/src/workspace-unit-collection.ts+++ b/packages/data-center/src/workspace-unit-collection.ts@@ -61,7 +61,8 @@ export class WorkspaceUnitCollection {const add = (workspace: WorkspaceUnitCtorParams) => {if (this._workspaceUnitMap.has(workspace.id)) {- throw new Error(`Duplicate workspace id.`);+ // FIXME: multiple add same workspace+ return;}const workspaceUnit = new WorkspaceUnit(workspace);