client/app/bundles/course/assessment/submission/reducers/answers.js
Function default
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
switch (action.type) {
case actions.SAVE_GRADE_SUCCESS: {
const initialValues = convertAnswersDataToInitialValues(
action.payload.answers,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return state;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return produce(state, (draft) => {
draft.clientVersionByAnswerId[answerId] = clientVersion;
});
- Create a ticketCreate a ticket