mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Empty note text if no note is attached to an article
This commit is contained in:
parent
fdf839973f
commit
4338fcfe31
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue