Commit 160f8fba authored by Florent Chehab's avatar Florent Chehab

Fixed(null error in front)

parent 8bfeda3e
Pipeline #44491 passed with stages
in 3 minutes and 48 seconds
......@@ -4,6 +4,7 @@
###### *TBD*
- [feature] Possible to go back to home on frontend crash
- [bug fix] Frontend was crashing when `majors` was `null`
## v1.0.0
......
......@@ -151,7 +151,7 @@ class UniversityOffers extends CustomComponentForAPI {
doubleDegree: doubleDegree,
comment,
master,
majors: majors.split(","),
majors: typeof majors === "string" ? majors.split(",") : [],
semester: `${semester}${year}`
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment