Merge pull request #3232 from omnivore-app/fix/web-note-highlights-layout

Empty note text if no note is attached to an article
This commit is contained in:
Jackson Harper
2023-12-11 12:13:42 +08:00
committed by GitHub

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