MOBILE-3833 myoverview: Fix empty courses
parent
5af14b7f2e
commit
916b4a6036
|
@ -303,6 +303,10 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
|
||||||
protected loadFilters(
|
protected loadFilters(
|
||||||
config?: Record<string, { name: string; value: string; type: string }>,
|
config?: Record<string, { name: string; value: string; type: string }>,
|
||||||
): void {
|
): void {
|
||||||
|
if (!this.hasCourses) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.textFilter = '';
|
this.textFilter = '';
|
||||||
|
|
||||||
const sampleCourse = this.allCourses[0];
|
const sampleCourse = this.allCourses[0];
|
||||||
|
|
Loading…
Reference in New Issue