Skip to content

Commit cd3bdd1

Browse files
authored
Merge pull request #1043 from sergkot2020/right-angle-link-fix
Update RightAngleLinkWidget.tsx
2 parents 7941080 + eb24c08 commit cd3bdd1

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)