Cannot edit a question, error "ApolloError: Cannot read properties of null (reading 'startsWith')"
Expected behaviour
When questions are submitted in production, you should be able to log in and edit them.
Current behaviour
- Blank screens for some of the submitted questions and questions in production that I cannot edit because the "save" option is stuck.
Steps to reproduce
- Open the Question (it is in "In Production" state)
- Edit question
- Autosaving indicator shows "saving..." but nothing further happens.
Testing environment
- Username of the user who experienced the problem: Teshell
- URL where the problem occurred: https://assessment.biointeractive.org/question/44a1fc57-d0cc-46d1-a351-d940b2c1efed
- Browser name and version: Chrome and Safari
- User machine: Mac
- Previous ticket of this issue that was resolved: #331 (closed)
Error logs (if available)
Inspecting when editing the question shows this error in the console
Uncaught (in promise) ApolloError: Cannot read properties of null (reading 'startsWith')
at new t (main.5069fea6.js:2:7509478)
at main.5069fea6.js:2:7554157
at n (main.5069fea6.js:2:7658328)
at main.5069fea6.js:2:7658253
at new Promise (<anonymous>)
at Object.then (main.5069fea6.js:2:7658219)
at Object.next (main.5069fea6.js:2:7658338)
at y (main.5069fea6.js:2:7701535)
at b (main.5069fea6.js:2:7702041)
at t.next (main.5069fea6.js:2:7702574)
Possible solution
QA Steps
[To be completed by Coko]
Scheduling
[To be completed by Coko]
- Dependencies: [provide issue numbers]
- Development estimate: [provide in hours]