fix: api compatibility with blocksuite
This commit is contained in:
1 parent
44011b4695
commit
00f44c72ce
2 files changed
+13
-3
No files matched your search
@@ -10,9 +10,9 @@ import { useMemo } from 'react';
|
||||
export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) {
|
||||
return useMemo(
|
||||
() => ({
|
||||
createPage: (pageId: string, parentId?: string): Page => {
|
||||
createPage: (pageId: string): Page => {
|
||||
assertExists(blockSuiteWorkspace);
|
||||
return blockSuiteWorkspace.createPage(pageId, parentId);
|
||||
return blockSuiteWorkspace.createPage(pageId);
|
||||
},
|
||||
markMilestone: async (name: string) => {
|
||||
assertExists(blockSuiteWorkspace);
|
||||
|
||||
Reference in new issue
Block a user