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