Skip to content

Commit

Permalink
Avoid rendering branches for the first node
Browse files Browse the repository at this point in the history
This is a follow-up to 937c68c, which
added a dummy node as the first node.
  • Loading branch information
victorlin committed Oct 19, 2023
1 parent 2e5792b commit e234ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tree/phyloTree/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const drawBranches = function drawBranches() {
} else {
this.groups.branchTee
.selectAll('.branch')
.data(this.nodes.filter((d) => d.n.hasChildren))
.data(this.nodes.filter((d) => d.n.hasChildren && d.displayOrder !== undefined))
.enter()
.append("path")
.attr("class", "branch T")
Expand Down Expand Up @@ -213,7 +213,7 @@ export const drawBranches = function drawBranches() {
}
this.groups.branchStem
.selectAll('.branch')
.data(this.nodes)
.data(this.nodes.filter((d) => d.displayOrder !== undefined))
.enter()
.append("path")
.attr("class", "branch S")
Expand Down

0 comments on commit e234ee6

Please sign in to comment.