src/applications/search/actions/index.js
Function fetchSearchResults
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSearchResults(query, page, options) {
return dispatch => {
dispatch({ type: FETCH_SEARCH_RESULTS, query });
let queryString = `/search?query=${encodeURIComponent(query)}`;