diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-11 21:07:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-11 21:07:16 +0300 |
commit | 413b7041032d2bf34d95cdc1d2375dbf2dbf4163 (patch) | |
tree | cc434c827320462ceb81649dff3bb9fd3eb0c5c4 /app/assets/javascripts/search | |
parent | ce4562ad642c2c2b504dc322d9c7a1fdbf30cb83 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/search')
-rw-r--r-- | app/assets/javascripts/search/store/actions.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/search/store/actions.js b/app/assets/javascripts/search/store/actions.js index f4928834bf3..a68a0f75a2f 100644 --- a/app/assets/javascripts/search/store/actions.js +++ b/app/assets/javascripts/search/store/actions.js @@ -107,9 +107,18 @@ export const applyQuery = ({ state }) => { }; export const resetQuery = ({ state }) => { + const resetParams = SIDEBAR_PARAMS.reduce((acc, param) => { + acc[param] = null; + return acc; + }, {}); + visitUrl( setUrlParams( - { ...state.query, page: null, state: null, confidential: null, labels: null }, + { + ...state.query, + page: null, + ...resetParams, + }, undefined, true, ), |