fix: Fixed issue where note history would only display the latest content

This commit is contained in:
Aman Harwara
2023-09-01 23:42:42 +05:30
parent 42321fbe2b
commit 2fc3d04ba9

View File

@@ -35,14 +35,14 @@ export const ReadonlyNoteContent = ({
return undefined
}
const templateNoteForRevision = application.items.createTemplateItem(ContentType.TYPES.Note, note.content) as SNNote
const templateNoteForRevision = application.items.createTemplateItem(ContentType.TYPES.Note, content) as SNNote
const componentViewer = application.componentManager.createComponentViewer(editorForCurrentNote, {
readonlyItem: templateNoteForRevision,
})
return componentViewer
}, [application.componentManager, application.items, note])
}, [application.componentManager, application.items, content, note])
useEffect(() => {
return () => {