Skip to content

Commit eb24c08

Browse files
authored
Update RightAngleLinkWidget.tsx
The getRenderedPath method returns an empty array all the time. for RightAngle links. And this edit fix this problem.
1 parent 999f490 commit eb24c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-diagrams-routing/src/link/RightAngleLinkWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export class RightAngleLinkWidget extends React.Component<RightAngleLinkProps, R
188188
//ensure id is present for all points on the path
189189
let points = this.props.link.getPoints();
190190
let paths = [];
191+
this.refPaths = [];
191192

192193
// Get points based on link orientation
193194
let pointLeft = points[0];
@@ -286,7 +287,6 @@ export class RightAngleLinkWidget extends React.Component<RightAngleLinkProps, R
286287
);
287288
}
288289

289-
this.refPaths = [];
290290
return <g data-default-link-test={this.props.link.getOptions().testName}>{paths}</g>;
291291
}
292292
}

0 commit comments

Comments
 (0)