From 3f48a97668030a535e2ec83a5fa59c2231e3d4cc Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 12 Apr 2020 15:54:24 -0400 Subject: [PATCH] [+] Create gradeLevels field in CourseInfo --- src/logic/course-info.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/logic/course-info.ts b/src/logic/course-info.ts index ee9569a..67cff47 100644 --- a/src/logic/course-info.ts +++ b/src/logic/course-info.ts @@ -10,6 +10,7 @@ export default class CourseInfo uniqueName: string courseCount: number + gradeLevels: number[] /** * Construct with a json object @@ -27,6 +28,7 @@ export default class CourseInfo this.uniqueName = this.name.replace(/( A| CP| H)$/g, '') this.courseCount = this.courseIds.split('|').length; + this.gradeLevels = []; } }