Skip to content

Commit

Permalink
🚧 remove redundant calls to setDisplayOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 10, 2024
1 parent 1bdc144 commit 4dc00f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tree/phyloTree/change.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { timerFlush } from "d3-timer";
import { calcConfidenceWidth } from "./confidence";
import { applyToChildren } from "./helpers";
import { applyToChildren, setDisplayOrder } from "./helpers";
import { timerStart, timerEnd } from "../../../util/perf";
import { NODE_VISIBLE } from "../../../util/globals";
import { getBranchVisibility, strokeForBranch } from "./renderers";
Expand Down Expand Up @@ -324,6 +324,7 @@ export const change = function change({
}

if (changeNodeOrder) {
setDisplayOrder(this.nodes);
this.setDistance();
}

Expand Down

0 comments on commit 4dc00f9

Please sign in to comment.