Skip to content

Commit

Permalink
Checks for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablosanqt committed Oct 2, 2024
1 parent a736085 commit ffcc6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/app/overview/course-overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class CourseOverviewComponent implements OnInit, OnDestroy, AfterViewInit
this.courseActionItems = this.getCourseActionItems();
this.updateVisibleNavbarItems(window.innerHeight);
await this.updateRecentlyAccessedCourses();
this.isSidebarCollapsed = this.activatedComponentReference.isCollapsed;
this.isSidebarCollapsed = this.activatedComponentReference?.isCollapsed ?? false;
}

/** Listen window resize event by height */
Expand Down Expand Up @@ -565,7 +565,7 @@ export class CourseOverviewComponent implements OnInit, OnDestroy, AfterViewInit
// Since we change the pageTitle + might be pulling data upwards during a render cycle, we need to re-run change detection
this.changeDetectorRef.detectChanges();

this.isSidebarCollapsed = this.activatedComponentReference.isCollapsed;
this.isSidebarCollapsed = this.activatedComponentReference?.isCollapsed ?? false;
}

toggleSidebar() {
Expand Down

0 comments on commit ffcc6d1

Please sign in to comment.