Skip to content

Commit a787de9

Browse files
authored
fix: Assessments deletion (#344)
* fix: Assessments deletion
1 parent 6bd9903 commit a787de9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lms/static/checker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function changeAssessmentsAttributes(assessmentGroup, item) {
4444
}
4545
};
4646

47-
xhr.send(JSON.stringify({assessment: assessmentGroup.dataset.checkedid}));
47+
assessmentValue = assessmentGroup.dataset.checkedid;
48+
assessmentChecked = (assessmentValue !== 'null') ? assessmentValue : null;
49+
xhr.send(JSON.stringify({assessment: assessmentChecked}));
4850
}
4951

5052
function trackAssessmentButtons() {

0 commit comments

Comments
 (0)