Merge pull request #4065 from NoelDeMartin/MOBILE-4470

MOBILE-4470 timeline: Avoid filtering past courses
main
Pau Ferrer Ocaña 2024-05-27 15:01:05 +02:00 committed by GitHub
commit 094cf98bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -256,7 +256,6 @@ 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,
)