[O] Only return valid terms
This commit is contained in:
+2
-1
@@ -182,7 +182,8 @@ export default class Course
|
||||
get gradingPeriods(): number[]
|
||||
{
|
||||
let timeCode = Navigation.instance.getSelectedGradingPeriod();
|
||||
return timeCode == -1 ? [0, 1, 2, 3] : [timeCode];
|
||||
return (timeCode == -1 ? [0, 1, 2, 3] : [timeCode]).filter(term =>
|
||||
this.termAssignments[term].filter(a => a.graded).length != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user