Empty note text if no note is attached to an article

This commit is contained in:
Jackson Harper
2023-12-11 11:21:10 +08:00
parent fdf839973f
commit 4338fcfe31

View File

@ -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])