Skip to content

Commit

Permalink
Add filters to tree state
Browse files Browse the repository at this point in the history
This allows monitoring of filter changes in
changePhyloTreeViaPropsComparison.
  • Loading branch information
victorlin committed Oct 9, 2024
1 parent ceec881 commit 89f2f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/actions/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const updateVisibleTipsAndBranchThicknesses = (
);
const dispatchObj = {
type: types.UPDATE_VISIBILITY_AND_BRANCH_THICKNESS,
filters: controls.filters,
visibility: data.visibility,
visibilityVersion: data.visibilityVersion,
branchThickness: data.branchThickness,
Expand Down
1 change: 1 addition & 0 deletions src/reducers/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const Tree = (state = getDefaultTreeState(), action) => {
case types.CHANGE_DATES_VISIBILITY_THICKNESS: /* fallthrough */
case types.UPDATE_VISIBILITY_AND_BRANCH_THICKNESS: {
const newStates = {
filters: action.filters,
visibility: action.visibility,
visibilityVersion: action.visibilityVersion,
branchThickness: action.branchThickness,
Expand Down

0 comments on commit 89f2f5c

Please sign in to comment.