[F] Fix null pointer caused by initialization
This commit is contained in:
@@ -32,6 +32,7 @@ export default class CourseInfo
|
|||||||
this.gradeLevels = [];
|
this.gradeLevels = [];
|
||||||
this.uniqueName = CourseInfo.toUniqueName(this.name);
|
this.uniqueName = CourseInfo.toUniqueName(this.name);
|
||||||
this.enrollments = 0;
|
this.enrollments = 0;
|
||||||
|
this.classes = []
|
||||||
}
|
}
|
||||||
|
|
||||||
static toUniqueName(name: string)
|
static toUniqueName(name: string)
|
||||||
|
|||||||
Reference in New Issue
Block a user