Skip to content

Commit

Permalink
Merge pull request #3232 from omnivore-app/fix/web-note-highlights-la…
Browse files Browse the repository at this point in the history
…yout

Empty note text if no note is attached to an article
  • Loading branch information
jacksonh authored Dec 11, 2023
2 parents fdf8399 + 4338fcf commit c9f124a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/components/templates/article/Notebook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

1 comment on commit c9f124a

@vercel
Copy link

@vercel vercel bot commented on c9f124a Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.