Skip to content

Commit

Permalink
fix: page version history application error (#6529)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Jan 31, 2025
1 parent 66be0b1 commit d2a6307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/core/hooks/use-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const useEditor = (props: CustomEditorProps) => {
getDocument: () => {
const documentBinary = provider?.document ? Y.encodeStateAsUpdate(provider?.document) : null;
const documentHTML = editor?.getHTML() ?? "<p></p>";
const documentJSON = editor.getJSON() ?? null;
const documentJSON = editor?.getJSON() ?? null;

return {
binary: documentBinary,
Expand Down

0 comments on commit d2a6307

Please sign in to comment.