From bdc3e328e1de4cdad6c5ff2b1bdddd1cf768f2d6 Mon Sep 17 00:00:00 2001 From: unocelli <4frango@gmail.com> Date: Sat, 8 Jun 2024 07:59:42 +0200 Subject: [PATCH] fix: check if hmi for layout not available #1227 --- client/src/app/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index c674279a5..4fdcc54dc 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -32,7 +32,7 @@ export class LoginComponent { private dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) private data: any) { const hmi = this.projectService.getHmi(); - this.disableCancel = hmi.layout?.loginonstart && hmi.layout?.loginoverlaycolor !== LoginOverlayColorType.none; + this.disableCancel = hmi?.layout?.loginonstart && hmi.layout?.loginoverlaycolor !== LoginOverlayColorType.none; } onNoClick(): void {