mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix bug preventing setting a highlight note to an empty string
This commit is contained in:
parent
83012946dc
commit
b916b4a065
1 changed files with 2 additions and 2 deletions
|
|
@ -234,8 +234,8 @@ export function MarkdownNote(props: MarkdownNote): JSX.Element {
|
|||
<Button
|
||||
style="ctaDarkYellow"
|
||||
onClick={(event) => {
|
||||
const value = editorRef.current?.getMdValue()
|
||||
if (value) {
|
||||
if (editorRef.current) {
|
||||
const value = editorRef.current.getMdValue()
|
||||
const updateTime = new Date()
|
||||
setLastChanged(updateTime)
|
||||
props.saveText(value, updateTime, true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue