diff --git a/components/annotator-local/Annotator.tsx b/components/annotator-local/Annotator.tsx index 851f9f3db..edd768917 100644 --- a/components/annotator-local/Annotator.tsx +++ b/components/annotator-local/Annotator.tsx @@ -70,8 +70,6 @@ export function Annotator({ assets = [], onSubmit }: AnnotatorProps) { return window.self !== window.top; }, []); - if (isExcluded) return null; - const getSelector = (el: HTMLElement): string => { try { return finder(el, { @@ -236,6 +234,8 @@ export function Annotator({ assets = [], onSubmit }: AnnotatorProps) { const hoveredRect = useMemo(() => hoveredElement?.getBoundingClientRect(), [hoveredElement, updateTick]); const selectedRect = useMemo(() => selectedElement?.getBoundingClientRect(), [selectedElement, updateTick]); + if (isExcluded) return null; + return (
{/* 1. Global Toolbar */}