[F] Fix null pointer
This commit is contained in:
+1
-1
@@ -169,7 +169,7 @@ export default class Course
|
||||
*/
|
||||
get assignments(): Assignment[]
|
||||
{
|
||||
if (this.filteredAssignmentsCache != null)
|
||||
if (this.filteredAssignmentsCache == null)
|
||||
this.filteredAssignmentsCache = this.rawSelectedAssignments.filter(a => a.complete == 'Complete');
|
||||
|
||||
return this.filteredAssignmentsCache;
|
||||
|
||||
Reference in New Issue
Block a user