[F] Fix gradedCourses null

This commit is contained in:
Hykilpikonna
2020-08-01 16:00:22 -04:00
parent a8b49f713b
commit d31173fb9d
+2 -2
View File
@@ -21,13 +21,13 @@ export default class AppDemo
}) })
}) })
pWaitFor(() => app.courses.every(c => c.rawAssignments != null)).then(() => pWaitFor(() => app.courses.every(c => c.rawAssignments)).then(() =>
{ {
app.gradedCourses = app.courses.filter(c => c.isGraded)
app.gradedCourses.forEach(c => [0, 1, 2, 3].forEach(i => c.termGrading[i] = {method: 'TOTAL_MEAN', weightingMap: {}})) app.gradedCourses.forEach(c => [0, 1, 2, 3].forEach(i => c.termGrading[i] = {method: 'TOTAL_MEAN', weightingMap: {}}))
app.logLoading(''); app.logLoading('');
app.assignmentsReady = true app.assignmentsReady = true
}) })
console.log(app.user)
}) })
} }
} }