Merge pull request #1532 from crazyserver/MOBILE-2627

MOBILE-2627 course: Fix loading all sections when few modules
main
Juan Leyva 2018-09-25 15:31:53 +02:00 committed by GitHub
commit c56d23e18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {