From 73dff1ace4b4a9b3f6537721d7a67c9208221c3c Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 2 Oct 2023 17:39:18 +0200 Subject: [PATCH] MOBILE-4362 grades: Fix swipe navigation in tablet --- src/core/features/grades/pages/course/course.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, []),