fix: api compatibility with blocksuite

This commit is contained in:
himself65 committed 2023-04-20 22:29:11 -05:00
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);