fix: page version history application error (#6529)

This commit is contained in:
Anmol Singh Bhatia 2025-01-31 15:59:40 +05:30 committed by GitHub
parent 66be0b1862
commit d2a6307bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,