Skip to content

Commit

Permalink
fix: check if hmi for layout not available #1227
Browse files Browse the repository at this point in the history
  • Loading branch information
unocelli committed Jun 8, 2024
1 parent 159ad9f commit bdc3e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class LoginComponent {
private dialogRef: MatDialogRef<LoginComponent>,
@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 {
Expand Down

0 comments on commit bdc3e32

Please sign in to comment.