llTheBlankll / attendance-management-angular

robust Attendance Management System tailored for the Philippine education sector. Built with Spring Boot, WebSocket, and Angular, it offers real-time updates, secure JWT authentication, attendance analytics, and an intuitive interface. Efficiently track and manage attendance with tailored insights and notifications
Apache License 2.0
2 stars 1 forks source link

Error: R] TS18047: 'response.body' is possibly 'null'. #11

Closed llTheBlankll closed 2 months ago

llTheBlankll commented 2 months ago

The GitHub workflow action is not working because of the following errors:

Application bundle generation failed. [9.171 seconds]
Error: R] TS18047: 'response.body' is possibly 'null'. [plugin angular-compiler]
    src/app/dashboard/teacher/teacher-dashboard/teacher-dashboard.component.ts:403:27:
      403 │       this.totalStudents = response.body.count as number ?? 1000;
          ╵                            ~~~~~~~~~~~~~
Error: R] TS18047: 'response.body' is possibly 'null'. [plugin angular-compiler]
    src/app/dashboard/teacher/teacher-dashboard/teacher-dashboard.component.ts:410:30:
      410 │       this.onTimeAttendance = response.body.count as number ?? 1000;
          ╵                               ~~~~~~~~~~~~~
Error: R] TS18047: 'response.body' is possibly 'null'. [plugin angular-compiler]
    src/app/dashboard/teacher/teacher-dashboard/teacher-dashboard.component.ts:417:28:
      417 │       this.lateAttendance = response.body.count ?? 1000;
          ╵                             ~~~~~~~~~~~~~
Error: R] TS18047: 'response.body' is possibly 'null'. [plugin angular-compiler]
    src/app/dashboard/teacher/teacher-dashboard/teacher-dashboard.component.ts:424:30:
      424 │       this.absentAttendance = response.body.count as number ?? 1000;
          ╵                               ~~~~~~~~~~~~~
Error: Process completed with exit code 1.
llTheBlankll commented 2 months ago

@coderight1, would you like to fix it?