diff --git a/src/app/shared/pipes/academic-year-state.pipe.ts b/src/app/shared/pipes/academic-year-state.pipe.ts index 8fbd1fe9747c66b10e12f3708b335f1ca2ce8725..ae43459468405ab2be6372baba35e4d8d2569ced 100644 --- a/src/app/shared/pipes/academic-year-state.pipe.ts +++ b/src/app/shared/pipes/academic-year-state.pipe.ts @@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core'; }) export class AcademicYearStatePipe implements PipeTransform { - terms = []; + terms = [] as string[]; constructor(private route: ActivatedRoute) { this.terms = route.snapshot.data.requiredData.terms.map(t => t.termCode); } diff --git a/tsconfig.json b/tsconfig.json index df4ef3e57e25767eefb69f594d2168ca60b2d52f..ed67d4901ecea3942bb990abd8f8bc2fe37ed1d8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compileOnSave": false, "compilerOptions": { + "strictNullChecks": true, "baseUrl": "./src", "importHelpers": true, "paths": {