fix: Fixed issue where note history would only display the latest content
This commit is contained in:
@@ -35,14 +35,14 @@ export const ReadonlyNoteContent = ({
|
|||||||
return undefined
|
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, {
|
const componentViewer = application.componentManager.createComponentViewer(editorForCurrentNote, {
|
||||||
readonlyItem: templateNoteForRevision,
|
readonlyItem: templateNoteForRevision,
|
||||||
})
|
})
|
||||||
|
|
||||||
return componentViewer
|
return componentViewer
|
||||||
}, [application.componentManager, application.items, note])
|
}, [application.componentManager, application.items, content, note])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user