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
@@ -12,7 +12,7 @@ export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) {
() => ({
createPage: (pageId: string): Page => {
assertExists(blockSuiteWorkspace);
return blockSuiteWorkspace.createPage(pageId);
return blockSuiteWorkspace.createPage({ id: pageId });
},
markMilestone: async (name: string) => {
assertExists(blockSuiteWorkspace);