diff --git a/src/core/features/grades/pages/course/course.page.ts b/src/core/features/grades/pages/course/course.page.ts index d148992d1..d4383aa78 100644 --- a/src/core/features/grades/pages/course/course.page.ts +++ b/src/core/features/grades/pages/course/course.page.ts @@ -80,7 +80,7 @@ export class CoreGradesCoursePage implements AfterViewInit, OnDestroy { this.collapseLabel = Translate.instant('core.collapse'); this.useLegacyLayout = !CoreSites.getRequiredCurrentSite().isVersionGreaterEqualThan('4.1'); - switch (route.snapshot.data.swipeManagerSource) { + switch (route.snapshot.data.swipeManagerSource ?? route.snapshot.parent?.data.swipeManagerSource) { case 'courses': this.swipeManager = new CoreGradesCourseCoursesSwipeManager( CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreGradesCoursesSource, []),