Skip to content

Commit fb9cb82

Browse files
committed
Ensure comments are loaded when not in collab mode wether isNewFile is set or not
1 parent 1c8674b commit fb9cb82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/core/Editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ export class Editor extends EventEmitter {
585585
}
586586
}
587587

588-
if (this.options.isNewFile && this.options.isCommentsEnabled) {
588+
if ((this.options.isNewFile || !this.options.ydoc) && this.options.isCommentsEnabled) {
589589
this.options.shouldLoadComments = true;
590590
}
591591

0 commit comments

Comments
 (0)