Skip to content

Commit

Permalink
Assert that exam exists when isExamMode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-boehm committed Sep 27, 2023
1 parent 44dd9a6 commit 02ed32f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
</ng-container>

<ng-container *ngIf="!isExerciseDashboard && course && course.id">
<td *ngIf="isExamMode && exam">
<a [routerLink]="['/course-management', course.id, 'exams', exam.id, 'complaints']" [queryParams]="{ tutorId: tutor.userId }">
<td *ngIf="isExamMode">
<a [routerLink]="['/course-management', course.id, 'exams', exam!.id, 'complaints']" [queryParams]="{ tutorId: tutor.userId }">
{{ tutor.numberOfAcceptedComplaints }}
</a>
</td>
Expand Down

0 comments on commit 02ed32f

Please sign in to comment.