[Filters][Grade] Remove incorrect filtering of students without a grade

This commit is contained in:
Aaro Koivukangas
2026-09-21 15:24:21 +03:00
committed by Aaro Koivukangas
parent 86900b3ad4
commit f0d802df83
@@ -84,8 +84,6 @@ export const gradeFilter = createFilter<Options, Args, Precompute>({
), ),
] as [string, FormattedStudent['courses']] ] as [string, FormattedStudent['courses']]
) )
// Students with no courses get assigned "No grade" incorrectly
.filter(([_, courses]) => courses.length > 0)
.map(([studentNumber, courses]) => [ .map(([studentNumber, courses]) => [
studentNumber, studentNumber,
getHighestGradeOfCourseBetweenRange(courses, args.from, args.to), getHighestGradeOfCourseBetweenRange(courses, args.from, args.to),