client/app/bundles/course/survey/reducers/responseForm.js
Function default
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
const { type } = action;
switch (type) {
case actionTypes.CREATE_RESPONSE_REQUEST:
case actionTypes.LOAD_RESPONSE_EDIT_REQUEST:
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
response: action.response,
flags: { ...state.flags, ...action.flags },
};
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...state, flags: { ...state.flags, isSubmitting: false } };
- Create a ticketCreate a ticket