Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2bc6b32

Browse files
committed
fix: should not throw errors when navItems are undefined
1 parent0951140 commit2bc6b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎projects/coreui/angular/src/lib/sidebar/app-sidebar-nav.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class AppSidebarNavComponent implements OnChanges {
7777
}
7878

7979
publicngOnChanges(changes:SimpleChanges):void{
80-
this.navItemsArray=JSON.parse(JSON.stringify(this.navItems));
80+
this.navItemsArray=JSON.parse(JSON.stringify(this.navItems||[]));
8181
}
8282

8383
constructor(){}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp