Browse Source

Revert "fix: a merge issue"

This reverts commit fe9e7e9b6061e3eba79477e6db5b9836da984c22.
Peng Xiao 2 năm trước cách đây
mục cha
commit
24b3909cac
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      tldraw/packages/react/src/components/Canvas/Canvas.tsx

+ 0 - 1
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -110,7 +110,6 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
   const selectedShapesSet = React.useMemo(() => new Set(selectedShapes || []), [selectedShapes])
   const erasingShapesSet = React.useMemo(() => new Set(erasingShapes || []), [erasingShapes])
   const singleSelectedShape = selectedShapes?.length === 1 ? selectedShapes[0] : undefined
-  const selectedOrHooveredShape = hoveredShape || singleSelectedShape
 
   return (
     <div ref={rContainer} className={`tl-container ${className ?? ''}`}>