Merge branch 'angular-14' of code-repo.d4science.org:MaDgIK/openaire-library into angular-14
This commit is contained in:
commit
ff330802ab
|
@ -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