From 76e77397ef218c23db7cd18e936e90a2f94861b4 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 3 Jul 2020 12:05:13 +0200 Subject: [PATCH] MOBILE-3470 resource: Fix open file after PTR in course --- src/core/course/providers/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/course/providers/helper.ts b/src/core/course/providers/helper.ts index 25d5137eb..1ba933eac 100644 --- a/src/core/course/providers/helper.ts +++ b/src/core/course/providers/helper.ts @@ -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(() => {