Fix an error in sidebar
This commit is contained in:
parent
06f2f586a8
commit
5bd828d03c
|
@ -25,7 +25,7 @@ export class SideBarComponent implements AfterViewInit {
|
|||
ngAfterViewInit() {
|
||||
if(this.nav) {
|
||||
setTimeout(() => {
|
||||
if(this.items[this.activeIndex].items.length > 0) {
|
||||
if(this.items[this.activeIndex]?.items?.length > 0) {
|
||||
UIkit.nav(this.nav.nativeElement).toggle(this.activeIndex, true);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue