Skip to content

Commit

Permalink
Hotfix selection box props being passed to SVG element (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaslehnertum authored May 9, 2024
1 parent ad5d639 commit feff511
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/components/uml-element/canvas-element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type StateProps = {
interactable: boolean;
element: IUMLElement;
zoomFactor: number;
selectionBoxActive: boolean;
};

type DispatchProps = {};
Expand All @@ -44,6 +45,7 @@ const enhance = compose<ComponentClass<OwnProps>>(
interactable: state.editor.view === ApollonView.Exporting || state.editor.view === ApollonView.Highlight,
element: state.elements[props.id],
zoomFactor: state.editor.zoomFactor,
selectionBoxActive: state.editor.selectionBoxActive,
}),
{},
),
Expand All @@ -62,7 +64,8 @@ class CanvasElementComponent extends Component<Props> {
child: ChildComponent,
children,
theme,
zoomFactor: _,
zoomFactor: _zoomFactor,
selectionBoxActive: _selectionBoxActive,
...props
} = this.props;

Expand Down

0 comments on commit feff511

Please sign in to comment.