Skip to content

Commit eaf2fea

Browse files
committed
Fix streamtrees display for narratives
`showStreamTrees` was always getting set to false when loading the same dataset in narratives because the `treeToo` state is truthy when loading in the old state. Check `treeToo.loaded` to avoid showing streamtrees for tangletrees. Resolves #2050
1 parent 4fba479 commit eaf2fea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/actions/recomputeReduxState.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ export const createStateFromQueryOrJSONs = ({
11291129
* Note: currently we don't support LHS/RHS trees + streamtrees, but this should
11301130
* be feasible to implement if desired.
11311131
*/
1132-
if (controls.showStreamTrees && treeToo) controls.showStreamTrees = false;
1132+
if (controls.showStreamTrees && treeToo && treeToo.loaded) controls.showStreamTrees = false;
11331133
if (controls.showStreamTrees) {
11341134
tree.streams = labelStreamMembership(tree.nodes[0], controls.streamTreeBranchLabel)
11351135
if (Object.keys(tree.streams).length) {

0 commit comments

Comments
 (0)