Skip to content

Commit fd72261

Browse files
committed
fix(SidebarNavLink): test for item.attributes presence
1 parent fc32a94 commit fd72261

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/app-sidebar-nav-link.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a *ngSwitchDefault
2020
[ngClass]="getLinkClass()"
2121
[appHtmlAttr]="item.attributes"
22-
[target]="item.attributes.target ? item.attributes.target : '_self'"
22+
[target]="item.attributes && item.attributes.target ? item.attributes.target : '_self'"
2323
[attr.disabled]="isDisabled()"
2424
routerLinkActive="active"
2525
[routerLink]="item.url"

0 commit comments

Comments
 (0)