Skip to content

Commit

Permalink
Split pipe for type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
magaupp committed Dec 20, 2024
1 parent d86e4c6 commit 2e7b0d0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ export class ProgrammingExerciseDetailComponent implements OnInit, OnDestroy {
this.processGitDiffReport(gitDiffReport);
}
}),
)
// split pipe to keep type checks
.pipe(
mergeMap(() =>
this.programmingExercise.isAtLeastEditor ? this.programmingExerciseService.getBuildLogStatistics(exerciseId!) : of([] as BuildLogStatisticsDTO),
),
Expand Down

0 comments on commit 2e7b0d0

Please sign in to comment.