Skip to content

Commit c995a81

Browse files
committed
chore: throw error
1 parent 8c9245a commit c995a81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/editor/BlockNoteEditor.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,7 @@ export class BlockNoteEditor<
10091009
const originalFragment = this.options.collaboration?.fragment;
10101010

10111011
if (!originalFragment) {
1012-
// No original fragment found, so no need to fork
1013-
return;
1012+
throw new Error("No fragment to fork from");
10141013
}
10151014

10161015
const doc = new Y.Doc();

0 commit comments

Comments
 (0)