fix: first page default mode (#2719)

Co-authored-by: tzhangchi <c@affine.pro>
This commit is contained in:
Himself65
2023-06-08 10:17:27 +08:00
committed by GitHub
parent f3fd5ff76b
commit 05b73a59be
2 changed files with 9 additions and 3 deletions

View File

@@ -301,7 +301,7 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {
//#region init workspace
if (currentWorkspace.blockSuiteWorkspace.isEmpty) {
// this is a new workspace, so we should redirect to the new page
const pageId = nanoid();
const pageId = DEFAULT_HELLO_WORLD_PAGE_ID;
const page = currentWorkspace.blockSuiteWorkspace.createPage({
id: pageId,
});