MOBILE-3833 myoverview: Fix empty courses

main
Noel De Martin 2021-12-22 09:13:55 +01:00
parent 5af14b7f2e
commit 916b4a6036
1 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,10 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
protected loadFilters(
config?: Record<string, { name: string; value: string; type: string }>,
): void {
if (!this.hasCourses) {
return;
}
this.textFilter = '';
const sampleCourse = this.allCourses[0];