Skip to content

Commit

Permalink
fix: wait for current view to be set so errors and warnings can be re…
Browse files Browse the repository at this point in the history
…trieved
  • Loading branch information
MatthijsSmets committed Dec 10, 2024
1 parent abdb385 commit 3ab1bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/debug/debug.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export class DebugComponent implements OnInit {
next: (views: View[]) => {
this.views = views;
if (!this.currentView) {
this.currentView = this.views.find((v: View) => v.defaultView)!;
this.onViewChange(this.views.find((v: View) => v.defaultView)!);
}
this.retrieveErrorsAndWarnings();
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/debug/table/table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</div>
@if (hasTimedOut) {
<h4 class="progress-report-timeout">[One or more reports are in progress for more
than {{ this.reportsInProgressThreshold ?? 1 / 1000 / 60 }} minutes]</h4>
than {{ (this.reportsInProgressThreshold ?? 1) / 1000 / 60 }} minutes]</h4>
}
<div data-cy-debug="table" class="table-responsive table-container">
<table mat-table class="table mb-0" matSort [dataSource]="tableDataSource">
Expand Down

0 comments on commit 3ab1bcf

Please sign in to comment.