Widget does not preview the quiz for users who are not logged in
Opened this issue · 1 comments
nygrenh commented
TypeError: y.items is undefined
- Include items in preview endpoint
https://ohjelmointi-21.mooc.fi/osa-1/5-ehtorakenne#quiz-1d2102eb-0c2f-5185-a240-9814db357c8a
Technopathic commented
Here are the steps I took:
- Logged in (Quiz works fine)
- Logging out throws y.items is undefined error in Firefox and length undefined in Chrome.
- Reloading / Cache Clear (Issue is unresolved)
Here is a branch for debugging:
https://elements-of-ai-material-git-quiz-widget-update.mooc.vercel.app/1/1
Scrolling down the page to the quiz and having logged out, the error should be visible.