client/app/bundles/course/assessment/submission/actions/answers/textResponse.js
Function uploadTextResponseFiles
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uploadTextResponseFiles(answerId, answer, resetField) {
const payload = {
answer: {
id: answerId,
files: answer.files,
- Create a ticketCreate a ticket
Function deleteTextResponseFile
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function deleteTextResponseFile(answerId, questionId, attachmentId) {
return (dispatch) => {
const payload = { attachment_id: attachmentId };
dispatch({
- Create a ticketCreate a ticket