MOBILE-2627 course: Fix loading all sections when few modules
This commit is contained in:
		
							parent
							
								
									cba29471d8
								
							
						
					
					
						commit
						ecc1e6bad2
					
				@ -387,12 +387,13 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy {
 | 
				
			|||||||
                }, 0);
 | 
					                }, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (modulesLoaded >= CoreCourseFormatComponent.LOAD_MORE_ACTIVITIES) {
 | 
					                if (modulesLoaded >= CoreCourseFormatComponent.LOAD_MORE_ACTIVITIES) {
 | 
				
			||||||
                    this.showSectionId = i;
 | 
					 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.showSectionId = i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.canLoadMore = i < this.sections.length;
 | 
					        this.canLoadMore = i < this.sections.length;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (this.canLoadMore) {
 | 
					        if (this.canLoadMore) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user