MOBILE-3470 resource: Fix open file after PTR in course

main
Dani Palou 2020-07-03 12:05:13 +02:00
parent 831d1ba0e2
commit 76e77397ef
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(() => {