From 313f765f3706e1bf7a531484ad1e7696bc79cabc Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 23 Jun 2021 17:19:56 +0200 Subject: [PATCH] MOBILE-3320 calendar: Fix default events filter --- src/addons/calendar/components/filter/filter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/calendar/components/filter/filter.ts b/src/addons/calendar/components/filter/filter.ts index 11ecb8eb8..9398c60b7 100644 --- a/src/addons/calendar/components/filter/filter.ts +++ b/src/addons/calendar/components/filter/filter.ts @@ -59,7 +59,7 @@ export class AddonCalendarFilterPopoverComponent implements OnInit { * Init the component. */ ngOnInit(): void { - this.courseId = this.filter.courseId + ''; + this.courseId = (this.filter.courseId || -1) + ''; } /**