Skip to content
Snippets Groups Projects
Commit 363764a2 authored by cramakri's avatar cramakri
Browse files

BIS-549 SP-1096 : Fixed bug in computation of parents and children in node graph construction

SVN: 30263
parent cea3f06c
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,7 @@ SampleGraphModel.prototype.coalesceGraphData = function(data, callback) {
var node = nodeForSample(sample);
node.parents = sample.parents.map(nodeForSample);
node.parents.forEach(function(p) { p.children = [node]});
node.parents.forEach(function(p) { p.children ? p.children.push(node) : p.children = [node]});
}
function resolveChildren(sample) {
......@@ -244,7 +244,7 @@ SampleGraphModel.prototype.coalesceGraphData = function(data, callback) {
var node = nodeForSample(sample);
node.children = sample.children.map(nodeForSample);
node.children.forEach(function(p) { p.parents = [node]});
node.children.forEach(function(p) { p.parents ? p.parents.push(node) : p.parents = [node]});
}
samples.forEach(convertSampleToNode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment