diff --git a/packages/text-annotator/src/state/spatialTree.ts b/packages/text-annotator/src/state/spatialTree.ts index 675ffe76..9260c3e9 100644 --- a/packages/text-annotator/src/state/spatialTree.ts +++ b/packages/text-annotator/src/state/spatialTree.ts @@ -76,7 +76,6 @@ export const createSpatialTree = (store: Store, container: HTMLE const insert = (target: TextAnnotationTarget) => { const rects = toItems(target, container.getBoundingClientRect()); - rects.forEach(rect => tree.insert(rect)); index.set(target.annotation, rects); }