Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joverlee521 committed Sep 3, 2024
1 parent 5d821c9 commit 0f2a10f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/reducers/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ const Tree = (state = getDefaultTreeState(), action) => {
});
case types.TREE_TOO_DATA:
return action.tree;
case types.ADD_EXTRA_METADATA:
case types.ADD_EXTRA_METADATA: {
// add data into `nodes` in-place, so no redux update will be triggered if you only listen to `nodes`
addNodeAttrs(state.nodes, action.newNodeAttrs);
// add the new nodeAttrKeys to ensure tip labels get updated
const { nodeAttrKeys } = processNodes(state.nodes)
const { nodeAttrKeys } = processNodes(state.nodes);
// add the new colorings to totalStateCounts so that they can function as filters
return {
...state,
Expand All @@ -80,6 +80,7 @@ const Tree = (state = getDefaultTreeState(), action) => {
},
nodeAttrKeys
};
}
default:
return state;
}
Expand Down

0 comments on commit 0f2a10f

Please sign in to comment.