The dashboard breaks when the teacher has an upload action with absent courseExam
Expected Behavior
When the teacher is not in a class (the class is deleted or the teacher lost access to it), the dashboard should not show the grades or show an error.
Actual Behavior
When the teacher is not in a courseExam (the courseExam is deleted or the teacher lost access to it), the dashboard breaks (dramatically)
Steps to Reproduce
With a user who is teacher
- Ensure that there is an upload action which
courseExam
(labeled asobject
is not defined)* - Navigate to dashboard
- Verify that the screen is broken
More Information (optional)
* Either delete it manually (don't, do the second option) or transform the received response from the api
Thanks @apolitis for pointing it out
Edited by Dimitrios Pliakos