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: remove hello-world page (#3234)
Alex Yangea592eb15002
diff --git a/apps/web/src/layouts/workspace-layout.tsx b/apps/web/src/layouts/workspace-layout.tsxindex dd39343fa6..c622a86635 100644--- a/apps/web/src/layouts/workspace-layout.tsx+++ b/apps/web/src/layouts/workspace-layout.tsx@@ -188,9 +188,7 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {const { jumpToPage } = useRouterHelper(router);//#region init workspace- // eslint-disable-next-line @typescript-eslint/ban-ts-comment- // @ts-expect-error- if (currentWorkspace.blockSuiteWorkspace.meta._proxy.isEmpty !== true) {+ if (currentWorkspace.blockSuiteWorkspace.isEmpty) {// this is a new workspace, so we should redirect to the new pageconst pageId = `${currentWorkspace.blockSuiteWorkspace.id}-${DEFAULT_HELLO_WORLD_PAGE_ID_SUFFIX}`;if (currentWorkspace.blockSuiteWorkspace.getPage(pageId) === null) {@@ -207,9 +205,6 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {console.error('init empty page error', error);});}- // eslint-disable-next-line @typescript-eslint/ban-ts-comment- // @ts-expect-error- currentWorkspace.blockSuiteWorkspace.meta._proxy.isEmpty = false;if (!router.query.pageId) {setCurrentPageId(pageId);jumpToPage(currentWorkspace.id, pageId).catch(console.error);