Merge pull request #2444 from moodlehq/integration

Integration
main
Juan Leyva 2020-07-03 12:12:44 +02:00 committed by GitHub
commit 4f461958fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ export class CoreCourseHelperProvider {
siteId = siteId || this.sitesProvider.getCurrentSiteId(); siteId = siteId || this.sitesProvider.getCurrentSiteId();
let promise; let promise;
if (files) { if (files && files.length) {
promise = Promise.resolve(files); promise = Promise.resolve(files);
} else { } else {
promise = this.courseProvider.loadModuleContents(module, courseId).then(() => { promise = this.courseProvider.loadModuleContents(module, courseId).then(() => {