You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issue #1540 issue_1540 empty error message was returned when student invokes MyLA before fully setup (#1561)
* issue #1540 issue_1540 empty error message was returned when student invokes MyLA before fully setup
* Update Course.js with formatting changes
* Fix for data to return status if statusText is not available
---------
Co-authored-by: Code Hugger (Matthew Jones) <jonespm@umich.edu>
Copy file name to clipboardExpand all lines: assets/src/containers/Course.js
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,24 @@ function Course (props) {
55
55
setSideDrawerState(open)
56
56
}
57
57
58
-
if(error.message==='Not Found')return(<WarningBanner>Course {courseId} has not been set up in MyLA. Contact your instructor, who can enable the visualizations by clicking on MyLA in the course navigation.</WarningBanner>)
59
-
elseif(error.message==='Forbidden')return(<WarningBanner>You do not have access to course {courseId}.</WarningBanner>)
Course {courseId} has not been set up in MyLA. Contact your instructor, who can enable the visualizations by clicking on MyLA in the course navigation.
0 commit comments