Merge branch 'angular-14' of code-repo.d4science.org:MaDgIK/openaire-library into angular-14

This commit is contained in:
Konstantina Galouni 2022-12-21 13:34:16 +02:00
commit ff330802ab
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
});