MOBILE-4270 course: Fix exception if load sections fail

main
Dani Palou 2023-04-12 15:06:10 +02:00
parent 10f0993c05
commit 9fa85bd83e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<core-loading [hideUntil]="dataLoaded && !updatingData">
<core-course-format [course]="course" [sections]="sections" [initialSectionId]="sectionId" [initialSectionNumber]="sectionNumber"
[moduleId]="moduleId" class="core-course-format-{{course.format}}" *ngIf="dataLoaded">
[moduleId]="moduleId" class="core-course-format-{{course.format}}" *ngIf="dataLoaded && sections">
</core-course-format>
</core-loading>
</ion-content>