fix: filter context bar shapes

pull/9192/head^2
Konstantinos Kaloutas 2023-04-18 13:34:13 +03:00 committed by Tienson Qin
parent 64f5c59c9f
commit aa6b249705
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
{selectedShapes && components.ContextBar && (
<ContextBarContainer
key={'context' + selectedShapes.map(shape => shape.id).join('')}
shapes={selectedShapes}
shapes={selectedShapes.filter(s => !s.props.isLocked)}
hidden={!showContextBar}
bounds={singleSelectedShape ? singleSelectedShape.bounds : selectionBounds}
rotation={singleSelectedShape ? singleSelectedShape.props.rotation : 0}