Update RightAngleLinkWidget.tsx

The getRenderedPath method returns an empty array all the time. for RightAngle links. And this edit fix this problem.
This commit is contained in:
Sergey Novozhilov
2024-11-05 12:56:00 +03:00
committed by GitHub
parent 999f4902e2
commit eb24c088c2

View File

@@ -188,6 +188,7 @@ export class RightAngleLinkWidget extends React.Component<RightAngleLinkProps, R
//ensure id is present for all points on the path
let points = this.props.link.getPoints();
let paths = [];
this.refPaths = [];
// Get points based on link orientation
let pointLeft = points[0];
@@ -286,7 +287,6 @@ export class RightAngleLinkWidget extends React.Component<RightAngleLinkProps, R
);
}
this.refPaths = [];
return <g data-default-link-test={this.props.link.getOptions().testName}>{paths}</g>;
}
}