Add check for ogBootServicesStatus in getServices method to prevent errors
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/18/head
Lucas Lara García 2025-03-18 10:22:50 +01:00
parent a125252be9
commit f004de1ebd
1 changed files with 3 additions and 0 deletions

View File

@ -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]