src/applications/find-forms/actions/index.js
Function fetchFormsThunk
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchFormsThunk = (query, options = {}) => async dispatch => {
// Derive options properties.
const location = options?.location || window.location;
const history = options?.history || window.history;
const mockRequest = options?.mockRequest || false;