diff --git a/src/routes/dash/[course]/+page.svelte b/src/routes/dash/[course]/+page.svelte index 2128446..f65dc9c 100644 --- a/src/routes/dash/[course]/+page.svelte +++ b/src/routes/dash/[course]/+page.svelte @@ -25,7 +25,8 @@ } function reorganizeTeachings(degree: Degree) { - if (degree.teachings != null) return { mandatory: [], electives: [] }; + if (degree.teachings != null && degree.teachings.length == 0) + return { mandatory: [], electives: [] }; const mandatory: TeachingsBatch[] = []; const electives: TeachingsBatch[] = [];