Skip to content

Commit 4f54bdc

Browse files
Fixed highlight path annotation tracing when advisers without common children present
1 parent 0f6ab34 commit 4f54bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connectors/VerticalConnectorBundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ VerticalConnectorBundle.prototype.trace = function (data, params, options) {
103103
var topCenterPoint = null;
104104
if (parents.length > 0) {
105105
topCenterPoint = new this.ConnectorDestination({
106-
id: (children.length == 0 ? this.dotId : this.getId(data)),
106+
id: (children.length == 0 && this.dotId ? this.dotId : this.getId(data)),
107107
x: parentHorizontalCenter,
108108
y: parentsConnectorOffset
109109
});
@@ -113,7 +113,7 @@ VerticalConnectorBundle.prototype.trace = function (data, params, options) {
113113
var bottomCenterPoint = null;
114114
if (children.length > 0) {
115115
bottomCenterPoint = new this.ConnectorDestination({
116-
id: (parents.length == 0 ? this.dotId : this.getId(data)),
116+
id: (parents.length == 0 && this.dotId ? this.dotId : this.getId(data)),
117117
x: parentHorizontalCenter,
118118
y: childrenConnectorOffset
119119
});

0 commit comments

Comments
 (0)