Skip to content

Commit

Permalink
fix dash
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Jun 7, 2024
1 parent e29e0ba commit 8f2a13c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/dash/[course]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down

0 comments on commit 8f2a13c

Please sign in to comment.