mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix check for confirming if a highlight has a note
This commit is contained in:
parent
85d5361d89
commit
8057c7e7fd
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
async (action: HighlightAction, param?: string) => {
|
||||
switch (action) {
|
||||
case 'delete':
|
||||
if (focusedHighlight?.annotation == undefined) {
|
||||
if ((focusedHighlight?.annotation ?? '').length === 0) {
|
||||
await removeHighlightCallback()
|
||||
} else {
|
||||
setConfirmDeleteHighlightWithNoteId(focusedHighlight?.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue