Skip to content

Commit 50b415e

Browse files
committed
refactor: do not throw error on unneeded fork
1 parent d1a045a commit 50b415e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/editor/BlockNoteEditor.ts

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

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

10151016
const doc = new Y.Doc();

0 commit comments

Comments
 (0)