diff --git a/backend/src/components/studentFilters.js b/backend/src/components/studentFilters.js index 983b520b..6a992bad 100644 --- a/backend/src/components/studentFilters.js +++ b/backend/src/components/studentFilters.js @@ -351,7 +351,7 @@ function validateFteZeroFilter(filters) { } function validateGradeFilter(filterGrades = []) { - const activeGradeCodes = cacheService.getActiveEnrolledGradeCodes(); + const activeGradeCodes = cacheService.getActiveEnrolledGradeCodes().map(grade => grade.enrolledGradeCode); if (filterGrades.length > 0) { if (!filterGrades.every(value => activeGradeCodes.includes(value))) { log.error('Invalid grade filter.');