MOBILE-2431 calendar: Fix category events

main
Albert Gasset 2018-06-18 13:10:03 +02:00
parent 9048bd148c
commit 77c0066f63
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export class AddonCalendarEventPage {
}
this.title = title;
if (event.courseid != this.siteHomeId) {
if (event.courseid && event.courseid != this.siteHomeId) {
// It's a course event, retrieve the course name.
return this.coursesProvider.getUserCourse(event.courseid, true).then((course) => {
this.courseName = course.fullname;