mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
fix: dock to blocksuite latest API (#2219)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user