Merge pull request #2443 from dpalou/MOBILE-3470

MOBILE-3470 resource: Fix open file after PTR in course
main
Juan Leyva 2020-07-03 12:11:01 +02:00 committed by GitHub
commit ef5276c40c
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();
let promise;
if (files) {
if (files && files.length) {
promise = Promise.resolve(files);
} else {
promise = this.courseProvider.loadModuleContents(module, courseId).then(() => {