Skip to content

Commit bc789eb

Browse files
committed
🚧 remove URL query
1 parent fa421d5 commit bc789eb

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

‎src/actions/recomputeReduxState.js

-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ const modifyStateViaURLQuery = (state, query) => {
6464
if (query.m && state.branchLengthsToDisplay === "divAndDate") {
6565
state["distanceMeasure"] = query.m;
6666
}
67-
if (query.focus === undefined) {
68-
state["treeFocus"] = false;
69-
} else {
70-
state["treeFocus"] = true;
71-
}
7267
if (query.c) {
7368
state["colorBy"] = query.c;
7469
}

‎src/middleware/changeURL.js

-10
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,6 @@ export const changeURLMiddleware = (store) => (next) => (action) => {
140140
query.p = action.notInURLState === true ? undefined : action.data;
141141
break;
142142
}
143-
case types.CHANGE_TREE_FOCUS: {
144-
if (!("focus" in query) && action.focus) {
145-
// "null" is truthy - see query.ci implementation
146-
query.focus = null;
147-
}
148-
else if (("focus" in query) && !action.focus) {
149-
query.focus = undefined;
150-
}
151-
break;
152-
}
153143
case types.TOGGLE_SIDEBAR: {
154144
// we never add this to the URL on purpose -- it should be manually set as it specifies a world
155145
// where resizes can not open / close the sidebar. The exception is if it's toggled, we

0 commit comments

Comments
 (0)