[F] Fix null pointer

This commit is contained in:
Hykilpikonna
2019-11-09 20:21:57 -05:00
parent 076a1ee52e
commit 4c87cb2947
+1 -1
View File
@@ -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;