Revert "fix: api compatibility with blocksuite"

This reverts commit 00f44c72ce.
This commit is contained in:
himself65 committed 2023-04-20 22:53:32 -05:00
1 parent 00f44c72ce
commit 6cddacb953
2 files changed
+3 -13

No files matched your search

@@ -10,9 +10,9 @@ import { useMemo } from 'react';
export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) {
return useMemo(
() => ({
createPage: (pageId: string): Page => {
createPage: (pageId: string, parentId?: string): Page => {
assertExists(blockSuiteWorkspace);
return blockSuiteWorkspace.createPage(pageId);
return blockSuiteWorkspace.createPage(pageId, parentId);
},
markMilestone: async (name: string) => {
assertExists(blockSuiteWorkspace);