Skip to content

Commit

Permalink
Merge pull request #1714: Avoid rendering branches for the first node
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin authored Oct 19, 2023
2 parents 2e5792b + e234ee6 commit 3f51ffa
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 3f51ffa

Please sign in to comment.