Skip to content

Commit

Permalink
Merge pull request #4065 from NoelDeMartin/MOBILE-4470
Browse files Browse the repository at this point in the history
MOBILE-4470 timeline: Avoid filtering past courses
  • Loading branch information
crazyserver authored May 27, 2024
2 parents 00fd418 + 086a220 commit 094cf98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/addons/block/timeline/components/timeline/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 094cf98

Please sign in to comment.