AOSSIE-Org / AOSSIE-Org/EduAid

[BUG]: Error after generating quiz (all question types)

Open
#620 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
171
Forks
423
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

### Description

While generating a quiz using the **all question types option**, after a long loading/scrolling, the output page crashes and shows a runtime error.

### Observed Behavior

* Page loads for some time (with scrolling/loading)
* Then shows error:

```text
Cannot read properties of undefined (reading 'forEach')
```

* The quiz output is not displayed

### Steps to Reproduce

1. Generate a quiz with all question types
2. Wait for loading to complete
3. Navigate to output page
4. Observe crash

### Expected Behavior

Quiz should render properly with all generated questions.

### Screenshot

Image

### Impact

High - Major feature is broken

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.