From c920c1c3497ac871030a3b6fe54a463f5cd53039 Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 24 Jan 2018 14:23:57 -0500 Subject: [PATCH] Remove limit=300 from project get saga and add to project search component --- src/containers/Project/index.js | 2 +- src/containers/Project/sagas.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/Project/index.js b/src/containers/Project/index.js index f4e3d920..58d4f525 100644 --- a/src/containers/Project/index.js +++ b/src/containers/Project/index.js @@ -76,7 +76,7 @@ class ProjectSearchBar extends Component { ); // Input the actual search type parameter here const actualType = SEARCH_TYPE_LIST[stateSource.type]; - const args = {}; + const args = { 'limit': 300 }; args[actualType] = stateSource.term; this.props.loadProjects(args); } diff --git a/src/containers/Project/sagas.js b/src/containers/Project/sagas.js index d9b866c1..9883d4cc 100644 --- a/src/containers/Project/sagas.js +++ b/src/containers/Project/sagas.js @@ -35,7 +35,7 @@ function* getProjects(action) { }, ''); const res = yield call( request, - `${projectURL}?${filterString}limit=300`, { + `${projectURL}?${filterString}`, { method: 'GET', headers: getHeaders(), } -- GitLab