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

Fixed(null error in front)

parent 8bfeda3e
Pipeline #44491 passed with stages
in 3 minutes and 48 seconds
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
###### *TBD* ###### *TBD*
- [feature] Possible to go back to home on frontend crash - [feature] Possible to go back to home on frontend crash
- [bug fix] Frontend was crashing when `majors` was `null`
## v1.0.0 ## v1.0.0
......
...@@ -151,7 +151,7 @@ class UniversityOffers extends CustomComponentForAPI { ...@@ -151,7 +151,7 @@ class UniversityOffers extends CustomComponentForAPI {
doubleDegree: doubleDegree, doubleDegree: doubleDegree,
comment, comment,
master, master,
majors: majors.split(","), majors: typeof majors === "string" ? majors.split(",") : [],
semester: `${semester}${year}` semester: `${semester}${year}`
}; };
......
Supports Markdown
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