diff --git a/packages/web/components/templates/article/HighlightsLayer.tsx b/packages/web/components/templates/article/HighlightsLayer.tsx index f2875f6d1..71561659b 100644 --- a/packages/web/components/templates/article/HighlightsLayer.tsx +++ b/packages/web/components/templates/article/HighlightsLayer.tsx @@ -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)