Skip to content

Commit

Permalink
PIDP-1062 Fix console error (#599)
Browse files Browse the repository at this point in the history
Co-authored-by: James Hollinger <[email protected]>
  • Loading branch information
Paahn and james-hollinger authored Oct 3, 2024
1 parent 5a5a772 commit 854509f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(click)="onMiniMenuButtonClick()">
<mat-icon>menu</mat-icon>
<span
[ngClass]="{'menu-notification-dot': alerts.includes(AlertCode.TRANSIENT_ERROR) || alerts.includes(AlertCode.PLR_BAD_STANDING)}"></span>
[ngClass]="{'menu-notification-dot': alerts?.includes(AlertCode.TRANSIENT_ERROR) || alerts?.includes(AlertCode.PLR_BAD_STANDING)}"></span>
</button>
</div>
<div *ngIf="isTopMenuVisible" uiPidpInjectViewportCss>
Expand Down Expand Up @@ -109,7 +109,7 @@
>College License</a
>
<span
[ngClass]="{'menu-list-notification-dot': alerts.includes(AlertCode.TRANSIENT_ERROR) || alerts.includes(AlertCode.PLR_BAD_STANDING)}"></span>
[ngClass]="{'menu-list-notification-dot': alerts?.includes(AlertCode.TRANSIENT_ERROR) || alerts?.includes(AlertCode.PLR_BAD_STANDING)}"></span>
<a
class="sidenav-menu-item"
(click)="navigateTo(ProfileRoutes.routePath(ProfileRoutes.USER_ACCESS_AGREEMENT))"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { ProfileRoutes } from '@app/features/profile/profile.routes';
],
})
export class NavMenuComponent implements OnChanges {
@Input() public alerts!: AlertCode[];
@Input() public alerts: AlertCode[] | null = [];
@Input() public menuItems!: DashboardMenuItem[];
@Input() public emailSupport!: string;
@Input() public collegeRoute!: string;
Expand Down

0 comments on commit 854509f

Please sign in to comment.