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 {