MOBILE-3470 resource: Fix open file after PTR in course
parent
831d1ba0e2
commit
76e77397ef
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue