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(core): temporary remove blockVersions assertion (#4285)
LongYinan05c27ed1646f
diff --git a/apps/core/src/pages/workspace/index.tsx b/apps/core/src/pages/workspace/index.tsxindex 984aefc0bf..4f46cfbf32 100644--- a/apps/core/src/pages/workspace/index.tsx+++ b/apps/core/src/pages/workspace/index.tsx@@ -1,6 +1,5 @@import { WorkspaceFlavour } from '@affine/env/workspace';import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';-import { assertExists } from '@blocksuite/global/utils';import { getActiveBlockSuiteWorkspaceAtom } from '@toeverything/infra/__internal__/workspace';import {currentPageIdAtom,@@ -36,7 +35,9 @@ export const loader: LoaderFunction = async args => {const workspace = await rootStore.get(workspaceAtom);return (() => {const blockVersions = workspace.meta.blockVersions;- assertExists(blockVersions, 'blockVersions should not be null');+ if (!blockVersions) {+ return true;+ }for (const [flavour, schema] of workspace.schema.flavourSchemaMap) {if (blockVersions[flavour] !== schema.version) {return true;