diff --git a/packages/core/src/components/page/page.tsx b/packages/core/src/components/page/page.tsx index f8c532d1d..2a0746732 100644 --- a/packages/core/src/components/page/page.tsx +++ b/packages/core/src/components/page/page.tsx @@ -55,12 +55,13 @@ export const Page = React.memo(function Page page.shapes[id]) - const shape = page.shapes[id] + if (selectedShapes.length === 1) { + const shape = selectedShapes[0] const utils = shapeUtils[shape.type] as TLShapeUtil @@ -78,12 +79,9 @@ export const Page = React.memo(function Page ))} {!hideIndicators && - selectedIds - .map((id) => page.shapes[id]) - .filter(Boolean) - .map((shape) => ( - - ))} + selectedShapes.map((shape) => ( + + ))} {!hideIndicators && hoveredId && (