MOBILE-2627 course: Fix loading all sections when few modules

main
Pau Ferrer Ocaña 2018-09-25 09:32:07 +02:00
parent cba29471d8
commit ecc1e6bad2
1 changed files with 2 additions and 1 deletions

View File

@ -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) {