fix: dock to blocksuite latest API (#2219)

This commit is contained in:
Himself65
2023-05-03 18:57:59 -05:00
committed by GitHub
parent 9096ac2960
commit 86988bd6e8
15 changed files with 146 additions and 137 deletions

View File

@@ -32,7 +32,7 @@ export function useAppHelper() {
ws => ws.id === workspaceId
) as LocalWorkspace;
if (workspace && 'blockSuiteWorkspace' in workspace) {
workspace.blockSuiteWorkspace.createPage(pageId);
workspace.blockSuiteWorkspace.createPage({ id: pageId });
} else {
throw new Error('cannot create page. blockSuiteWorkspace not found');
}