MOBILE-3021 calendar: Fix filter events by course

main
Albert Gasset 2019-08-07 12:11:12 +02:00
parent 8ae3009996
commit 6e80f34547
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ export class AddonCalendarHelperProvider {
} }
// Show the event if it is from site home or if it matches the selected course. // Show the event if it is from site home or if it matches the selected course.
return event.courseid === this.sitesProvider.getSiteHomeId() || event.courseid == courseId; return event.course && (event.course.id == this.sitesProvider.getCurrentSiteHomeId() || event.course.id == courseId);
} }
/** /**