Skip to content

Commit

Permalink
🚧 remove URL query
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 7, 2024
1 parent fa421d5 commit bc789eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/actions/recomputeReduxState.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ const modifyStateViaURLQuery = (state, query) => {
if (query.m && state.branchLengthsToDisplay === "divAndDate") {
state["distanceMeasure"] = query.m;
}
if (query.focus === undefined) {
state["treeFocus"] = false;
} else {
state["treeFocus"] = true;
}
if (query.c) {
state["colorBy"] = query.c;
}
Expand Down
10 changes: 0 additions & 10 deletions src/middleware/changeURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ export const changeURLMiddleware = (store) => (next) => (action) => {
query.p = action.notInURLState === true ? undefined : action.data;
break;
}
case types.CHANGE_TREE_FOCUS: {
if (!("focus" in query) && action.focus) {
// "null" is truthy - see query.ci implementation
query.focus = null;
}
else if (("focus" in query) && !action.focus) {
query.focus = undefined;
}
break;
}
case types.TOGGLE_SIDEBAR: {
// we never add this to the URL on purpose -- it should be manually set as it specifies a world
// where resizes can not open / close the sidebar. The exception is if it's toggled, we
Expand Down

0 comments on commit bc789eb

Please sign in to comment.