Skip to content

Commit 932abb5

Browse files
Fixed false-positive open setting
1 parent 69be7ea commit 932abb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
7272

7373
useEffect(() => {
7474
const annotationSelector = annotation?.target.selector;
75-
if (!annotationSelector) return;
75+
if (!annotationSelector?.length) return;
7676

7777
setOpen(isRevived(annotationSelector));
7878
}, [annotation]);

0 commit comments

Comments
 (0)