Skip to content

Commit 9bdc9b5

Browse files
committed
chore: throw error
1 parent 5b54b34 commit 9bdc9b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/editor/BlockNoteEditor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,7 @@ export class BlockNoteEditor<
10081008
const originalFragment = this.options.collaboration?.fragment;
10091009

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

10151014
const doc = new Y.Doc();

0 commit comments

Comments
 (0)