[Meta] Add course code to credits and enrollments of students

This commit is contained in:
Aaro Koivukangas
2026-09-21 15:24:21 +03:00
committed by Aaro Koivukangas
parent 6d169a3455
commit 172081468a
7 changed files with 44 additions and 43 deletions
@@ -55,7 +55,7 @@ export const CustomPopulationContent = ({
useEffect(() => {
setStudentAmountLimit(Math.round(filteredStudents.length ? filteredStudents.length * 0.3 : 0))
}, [filteredStudents.length])
}, [filteredStudents.length, setStudentAmountLimit])
const onStudentAmountLimitChange = value => {
setStudentAmountLimit(Number.isNaN(Number(value)) ? studentAmountLimit : Number(value))
@@ -123,7 +123,7 @@ export const CustomPopulationContent = ({
showBachelorAndMaster: false,
includePrimaryProgramme: false,
coursecodes: [],
courseIds: [],
from: undefined,
to: undefined,
})
@@ -78,6 +78,7 @@ export const formatPopulationData = <T extends RequiredFields>(
return {
course_id: credit.course_id,
course_code: credit.course_code,
date: credit.attainment_date,
passed,
grade: passed ? credit.grade : 'Hyl.',