We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbae5c7 commit e15ea2eCopy full SHA for e15ea2e
packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx
@@ -98,7 +98,7 @@ export const TextAnnotationPopup = (props: TextAnnotationPopupProps) => {
98
const annotationId = annotation?.id;
99
const annotationSelectorsLength = annotation?.target.selector.length;
100
101
- if (annotationId && annotationSelectorsLength) {
+ if (annotationId && annotationSelectorsLength > 0) {
102
const bounds = r?.state.store.getAnnotationBounds(annotation.id);
103
setOpen(Boolean(bounds));
104
} else {
0 commit comments