diff --git a/src/main/components/uml-element/canvas-element.tsx b/src/main/components/uml-element/canvas-element.tsx index a2fb3f91..5c58af8a 100644 --- a/src/main/components/uml-element/canvas-element.tsx +++ b/src/main/components/uml-element/canvas-element.tsx @@ -26,6 +26,7 @@ type StateProps = { interactable: boolean; element: IUMLElement; zoomFactor: number; + selectionBoxActive: boolean; }; type DispatchProps = {}; @@ -44,6 +45,7 @@ const enhance = compose>( interactable: state.editor.view === ApollonView.Exporting || state.editor.view === ApollonView.Highlight, element: state.elements[props.id], zoomFactor: state.editor.zoomFactor, + selectionBoxActive: state.editor.selectionBoxActive, }), {}, ), @@ -62,7 +64,8 @@ class CanvasElementComponent extends Component { child: ChildComponent, children, theme, - zoomFactor: _, + zoomFactor: _zoomFactor, + selectionBoxActive: _selectionBoxActive, ...props } = this.props;