From 4338fcfe3144baffc33782f4f4c065ee90b025b3 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 11 Dec 2023 11:21:10 +0800 Subject: [PATCH] Empty note text if no note is attached to an article --- packages/web/components/templates/article/Notebook.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/components/templates/article/Notebook.tsx b/packages/web/components/templates/article/Notebook.tsx index 06b3e370e..86f1b881a 100644 --- a/packages/web/components/templates/article/Notebook.tsx +++ b/packages/web/components/templates/article/Notebook.tsx @@ -122,6 +122,8 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element { noteState.current.note = note noteState.current.isCreating = false setNoteText(note.annotation || '') + } else { + setNoteText('') } return result }, [articleData])