Skip to content

Commit

Permalink
feat: Add direct children nodes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikGartner committed Jan 1, 2016
1 parent 9590d41 commit 2a37451
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ const dTree = {
// add to parent as child
parent.children.push(node);

// add "direct" children
_.forEach(person.children, function(child) {
reconstructTree(child, node);
});

// go through marriage
if (person.marriage) {

Expand Down

0 comments on commit 2a37451

Please sign in to comment.