forked from CIT/Vmeda.Online
		
	MOBILE-3470 resource: Fix open file after PTR in course
This commit is contained in:
		
							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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user