From 2fc3d04ba99d66635fcf29be295509e439b9eecd Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Fri, 1 Sep 2023 23:42:42 +0530 Subject: [PATCH] fix: Fixed issue where note history would only display the latest content --- .../javascripts/Components/NoteView/ReadonlyNoteContent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/javascripts/Components/NoteView/ReadonlyNoteContent.tsx b/packages/web/src/javascripts/Components/NoteView/ReadonlyNoteContent.tsx index b0b95e0cc..b6392f4fb 100644 --- a/packages/web/src/javascripts/Components/NoteView/ReadonlyNoteContent.tsx +++ b/packages/web/src/javascripts/Components/NoteView/ReadonlyNoteContent.tsx @@ -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 () => {