Skip to content

Fix TestForm render crash and save button validation#24

Open
rahul810050 wants to merge 1 commit intooaiedu:masterfrom
rahul810050:fix/testform-datasize-guard
Open

Fix TestForm render crash and save button validation#24
rahul810050 wants to merge 1 commit intooaiedu:masterfrom
rahul810050:fix/testform-datasize-guard

Conversation

@rahul810050
Copy link

This PR fixes two issues in TestForm.vue:

• Prevents a render-time crash caused by accessing
getDataSize.questions.general before Firestore data-size finishes loading
by adding a null-safe guard in the pageAmount computed property.

• Fixes the Save button validation logic so that random-quiz constraints
are only applied to the "random" quiz type. This allows the Save button
to correctly enable for "selected" quizzes after valid question selection.

Before:
image

After:
image

No logic or UX behavior is changed beyond preventing crashes and ensuring
correct validation behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant