Merge pull request #4065 from NoelDeMartin/MOBILE-4470
MOBILE-4470 timeline: Avoid filtering past coursesmain
commit
094cf98bf3
|
@ -256,7 +256,6 @@ export class AddonBlockTimelineComponent implements OnInit, ICoreBlockComponent
|
||||||
.filter(
|
.filter(
|
||||||
course =>
|
course =>
|
||||||
!course.hidden &&
|
!course.hidden &&
|
||||||
!CoreCoursesHelper.isPastCourse(course, gracePeriod.after) &&
|
|
||||||
!CoreCoursesHelper.isFutureCourse(course, gracePeriod.after, gracePeriod.before) &&
|
!CoreCoursesHelper.isFutureCourse(course, gracePeriod.after, gracePeriod.before) &&
|
||||||
courseEvents[course.id].events.length > 0,
|
courseEvents[course.id].events.length > 0,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue