Skip to content

Commit e15ea2e

Browse files
Explicit length check
1 parent fbae5c7 commit e15ea2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const TextAnnotationPopup = (props: TextAnnotationPopupProps) => {
9898
const annotationId = annotation?.id;
9999
const annotationSelectorsLength = annotation?.target.selector.length;
100100

101-
if (annotationId && annotationSelectorsLength) {
101+
if (annotationId && annotationSelectorsLength > 0) {
102102
const bounds = r?.state.store.getAnnotationBounds(annotation.id);
103103
setOpen(Boolean(bounds));
104104
} else {

0 commit comments

Comments
 (0)