diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-17 00:09:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-17 00:09:48 +0300 |
commit | 9b8433e5ecd54f93ee8df3bb9d9038e978d57afc (patch) | |
tree | b94758d475fe9ffe547eb838fbf15b3910234426 /app/assets/javascripts/search | |
parent | dbfedde341ef6434d40c4c2495f2be751f8bb973 (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 | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/app/assets/javascripts/search/store/actions.js b/app/assets/javascripts/search/store/actions.js index 40513a7f363..dc8b6201953 100644 --- a/app/assets/javascripts/search/store/actions.js +++ b/app/assets/javascripts/search/store/actions.js @@ -18,7 +18,7 @@ export const fetchGroups = ({ commit }, search) => { }); }; -export const fetchProjects = ({ commit, state }, search, emptyCallback = () => {}) => { +export const fetchProjects = ({ commit, state }, search) => { commit(types.REQUEST_PROJECTS); const groupId = state.query?.group_id; @@ -31,17 +31,11 @@ export const fetchProjects = ({ commit, state }, search, emptyCallback = () => { }; if (groupId) { - Api.groupProjects( - groupId, - search, - { - order_by: 'similarity', - with_shared: false, - include_subgroups: true, - }, - emptyCallback, - true, - ) + Api.groupProjects(groupId, search, { + order_by: 'similarity', + with_shared: false, + include_subgroups: true, + }) .then(handleSuccess) .catch(handleCatch); } else { |