diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d84b2e5f569194e3378fd7a4b2ad94af17df46a8..100a37dd2e6cba485872e6d497b1b3d10df0c90a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -13,7 +13,6 @@ import { UserService } from './user/services'; import { AppDirectives } from './directives'; import { FilterPipe } from './components/logs-dashboard/logs-slugs/filter.pipe'; - // Function used by APP_INITIALIZER before the app start: init user info / statut (expect a promise) export function initUserService(authService: UserService) { return (): Promise<any> => { diff --git a/src/app/components/logs-dashboard/report/logs-error/logs-error.component.ts b/src/app/components/logs-dashboard/report/logs-error/logs-error.component.ts index 6cbd7cea91fb77043f5b6793c20be66514b6af60..fa41091eb7d5883dd136c047d5e3c9f261532f2e 100644 --- a/src/app/components/logs-dashboard/report/logs-error/logs-error.component.ts +++ b/src/app/components/logs-dashboard/report/logs-error/logs-error.component.ts @@ -90,6 +90,12 @@ export class LogsErrorComponent implements OnChanges { this.childSessionId, ).subscribe((results) => { this.allStepsData = results; + for (const result of results) { + if (result.counts.ERROR > 0) { + this.getLogsSelector(result._id.step, result.counts); + break; + } + } }, ); } diff --git a/src/app/components/logs-dashboard/report/logs-info/logs-info.component.ts b/src/app/components/logs-dashboard/report/logs-info/logs-info.component.ts index b9caf070e41aeb3541c673e40f67e71aa52c502d..dfd2a95d7df5f0ed24717a61bb3c1e1787fe0ca9 100644 --- a/src/app/components/logs-dashboard/report/logs-info/logs-info.component.ts +++ b/src/app/components/logs-dashboard/report/logs-info/logs-info.component.ts @@ -85,6 +85,7 @@ export class LogsInfoComponent implements OnChanges { this.childSessionId, ).subscribe((results) => { this.allStepsData = results; + this.getLogsSelector(results[0]._id.step, results[0].counts); }, ); }