department-of-veterans-affairs/vets-website

View on GitHub
src/applications/search/actions/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function fetchSearchResults has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function fetchSearchResults(query, page, options) {
  return dispatch => {
    dispatch({ type: FETCH_SEARCH_RESULTS, query });

    let queryString = `/search?query=${encodeURIComponent(query)}`;
Severity: Minor
Found in src/applications/search/actions/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status