Commit 89d73c8b authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

[routing] Fix toggling of search details when the `show` argument is set to false;

parent ff506338
Pipeline #16187 passed with stage
in 3 minutes and 50 seconds
......@@ -68,7 +68,8 @@ function reduceSetSearchFields(state, action) {
function reduceToggleSearchDetails(state, action) {
let { show } = action;
show = show || !getDisplaySearchDetails(state);
if (typeof show !== 'boolean')
show = !getDisplaySearchDetails(state);
return u.updateIn('displaySearchDetails', show, state);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment