Merge pull request #3036 from NoelDeMartin/MOBILE-3833

MOBILE-3833 myoverview: Fix empty courses
main
Dani Palou 2021-12-22 10:16:24 +01:00 committed by GitHub
commit 9f99b78ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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];