Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-11 21:07:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-11 21:07:16 +0300
commit413b7041032d2bf34d95cdc1d2375dbf2dbf4163 (patch)
treecc434c827320462ceb81649dff3bb9fd3eb0c5c4 /app/assets/javascripts/search
parentce4562ad642c2c2b504dc322d9c7a1fdbf30cb83 (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.js11
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,
),