From 6ca81c61632e22ae5b81e8e052d4bfc570e49d96 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:59:04 -0800 Subject: [PATCH] fixup! Add tree-related types --- src/components/tree/phyloTree/change.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree/phyloTree/change.ts b/src/components/tree/phyloTree/change.ts index 912c43f99..299361d02 100644 --- a/src/components/tree/phyloTree/change.ts +++ b/src/components/tree/phyloTree/change.ts @@ -123,7 +123,7 @@ const genericSelectAndModify = ( let selection: SelectionOrTransition = svg.selectAll(treeElem) .filter((d: PhyloNode) => d.update); if (transitionTime) { - selection.transition().duration(transitionTime); + selection = selection.transition().duration(transitionTime); } selection.call(updateCall); };