[fix] shape indicator showing when locked shapes are hovered (#1771)
This PR makes it so that locked shapes do not show an indicator when hovered. ### Change Type - [x] `patch` — Bug fix ### Test Plan 1. Hover a locked shape 2. Hover a shape, then lock it ### Release Notes - locked shapes do not show an indicator when hovered
This commit is contained in:
parent
1014a71abb
commit
eb52eb4e30
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ export const InnerIndicator = ({ editor, id }: { editor: Editor; id: TLShapeId }
|
|||
|
||||
const { ShapeIndicatorErrorFallback } = useEditorComponents()
|
||||
|
||||
if (!shape.shape) return null
|
||||
if (!shape.shape || shape.shape.isLocked) return null
|
||||
|
||||
return (
|
||||
<OptionalErrorBoundary
|
||||
fallback={ShapeIndicatorErrorFallback}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue