[F] Fix null pointer caused by grading not existing

This commit is contained in:
Hykilpikonna
2019-10-01 18:30:20 -04:00
parent cbdcfc4ca1
commit 6910a7b5ea
+1 -1
View File
@@ -26,7 +26,7 @@ export class CourseUtils
if (course.assignments.length == 0) return;
// Skip if there are no grading scale
if (course.grading.method == 'NOT_GRADED') return;
// if (course.grading.method == 'NOT_GRADED') return;
// Add it to the list
result.push(course);