Merge pull request #1043 from sergkot2020/right-angle-link-fix

Update RightAngleLinkWidget.tsx
This commit is contained in:
Dylan Vorster
2025-04-03 11:33:04 -06:00
committed by GitHub

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>;
}
}