From f004de1ebd5a7b62db7f6c372879145821dd8664 Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Tue, 18 Mar 2025 10:22:50 +0100 Subject: [PATCH] Add check for ogBootServicesStatus in getServices method to prevent errors --- .../app/components/global-status/global-status.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ogWebconsole/src/app/components/global-status/global-status.component.ts b/ogWebconsole/src/app/components/global-status/global-status.component.ts index 9651a92..29c0a46 100644 --- a/ogWebconsole/src/app/components/global-status/global-status.component.ts +++ b/ogWebconsole/src/app/components/global-status/global-status.component.ts @@ -64,6 +64,9 @@ export class GlobalStatusComponent implements OnInit { } getServices(): { name: string, status: string }[] { + if (!this.ogBootServicesStatus) { + return []; + } return Object.keys(this.ogBootServicesStatus).map(key => ({ name: key, status: this.ogBootServicesStatus[key]