Skip to content

Commit

Permalink
[University] Fix page crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Aug 2, 2024
1 parent 557094a commit 29d28a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/backend/src/routes/university.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ router.get('/allgraduationstats', async (_req, res) => {
unifyTotals(data.byGradYear.medians, universityData.byGradYear.medians, i === facultyCodes.length - 1)
unifyProgrammeStats(universityData.byGradYear.programmes.medians, data.byGradYear.medians, facultyCode)
for (const degree of degreeNames) {
if (!data.classSizes[degree]) {
continue
}
if (!universityData.classSizes[degree]) {
universityData.classSizes[degree] = data.classSizes[degree]
} else {
Expand Down

0 comments on commit 29d28a4

Please sign in to comment.