MOBILE-4362 grades: Fix swipe navigation in tablet

main
Noel De Martin 2023-10-02 17:39:18 +02:00
parent 7667774a2a
commit 73dff1ace4
1 changed files with 1 additions and 1 deletions

View File

@ -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, []),