diff --git a/src/js/familyTree.tw b/src/js/familyTree.tw index a525c5f2f60016ec6d715cb70a78fadd12acafab..067edda6ed0cf607116d1ab11b3b836b1265d03c 100644 --- a/src/js/familyTree.tw +++ b/src/js/familyTree.tw @@ -34,7 +34,7 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS /* The way this code works is that we start with the activeSlave then we call slaveInfo() recursively to work our way up the tree finding their parents. - + */ function getSlave(id, expectedGenes) { @@ -117,7 +117,8 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS for(var i = 0; i < slaves.length; ++i) { var child = slaves[i]; - maybeAddSpouseToChild(child); + if(child.ID != activeSlave.ID) + maybeAddSpouseToChild(child); } for(var key in spouseToChild) {