Skip to content

Commit d2a6307

Browse files
fix: page version history application error (#6529)
1 parent 66be0b1 commit d2a6307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/src/core/hooks/use-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export const useEditor = (props: CustomEditorProps) => {
202202
getDocument: () => {
203203
const documentBinary = provider?.document ? Y.encodeStateAsUpdate(provider?.document) : null;
204204
const documentHTML = editor?.getHTML() ?? "<p></p>";
205-
const documentJSON = editor.getJSON() ?? null;
205+
const documentJSON = editor?.getJSON() ?? null;
206206

207207
return {
208208
binary: documentBinary,

0 commit comments

Comments
 (0)