Commit 0b6ed03c authored by Mark Florian's avatar Mark Florian

Merge branch 'fix-security-dashboard-project-selector-pagination' into 'master'

Fix security dashboard project selector pagination

See merge request gitlab-org/gitlab!26975
parents ceaa6b76 dad082ae
......@@ -171,7 +171,9 @@ export const fetchSearchResultsNextPage = ({ state, dispatch, commit }) => {
const searchOptions = { page: nextPage };
return searchProjects(searchQuery, searchOptions)
.then(payload => commit(types.RECEIVE_SEARCH_RESULTS_SUCCESS, payload))
.then(payload => {
commit(types.RECEIVE_NEXT_PAGE_SUCCESS, payload);
})
.catch(() => dispatch('receiveSearchResultsError'));
};
......
......@@ -592,7 +592,7 @@ describe('EE projectSelector actions', () => {
state,
[
{
type: types.RECEIVE_SEARCH_RESULTS_SUCCESS,
type: types.RECEIVE_NEXT_PAGE_SUCCESS,
payload: { data: projects, headers: responseHeaders, pageInfo },
},
],
......
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