Merge pull request #1532 from crazyserver/MOBILE-2627
MOBILE-2627 course: Fix loading all sections when few modulesmain
commit
c56d23e18a
|
@ -387,12 +387,13 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy {
|
|||
}, 0);
|
||||
|
||||
if (modulesLoaded >= CoreCourseFormatComponent.LOAD_MORE_ACTIVITIES) {
|
||||
this.showSectionId = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.showSectionId = i;
|
||||
|
||||
this.canLoadMore = i < this.sections.length;
|
||||
|
||||
if (this.canLoadMore) {
|
||||
|
|
Loading…
Reference in New Issue