Skip to content

Commit

Permalink
fix a compltely unrelated test and cause potential merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayvirS committed Nov 28, 2024
1 parent f4346b5 commit 578ba2e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AfterViewInit, Component, OnDestroy, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
import { AfterViewInit, ChangeDetectorRef, Component, OnDestroy, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { StudentExam } from 'app/entities/student-exam.model';
import { Exercise, ExerciseType } from 'app/entities/exercise.model';
Expand All @@ -8,7 +8,7 @@ import { ExamNavigationBarComponent } from 'app/exam/participate/exam-navigation
import { SubmissionService } from 'app/exercises/shared/submission/submission.service';
import dayjs from 'dayjs/esm';
import { SubmissionVersion } from 'app/entities/submission-version.model';
import { Observable, Subscription, forkJoin, map, mergeMap, toArray } from 'rxjs';
import { Observable, Subscription, forkJoin, map, mergeMap, tap, toArray } from 'rxjs';
import { ProgrammingSubmission } from 'app/entities/programming/programming-submission.model';
import { Submission } from 'app/entities/submission.model';
import { FileUploadSubmission } from 'app/entities/file-upload-submission.model';
Expand Down Expand Up @@ -57,6 +57,7 @@ export class StudentExamTimelineComponent implements OnInit, AfterViewInit, OnDe
private submissionService: SubmissionService,
private submissionVersionService: SubmissionVersionService,
private programmingExerciseParticipationService: ProgrammingExerciseParticipationService,
private cdr: ChangeDetectorRef,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -203,7 +204,8 @@ export class StudentExamTimelineComponent implements OnInit, AfterViewInit, OnDe
);
}
});
return forkJoin([...submissionObservables]);

return forkJoin([...submissionObservables]).pipe(tap(() => this.cdr.detectChanges()));
}

/**
Expand Down

0 comments on commit 578ba2e

Please sign in to comment.