Skip to content

Fix Firestore empty snapshot crashes in questions store#10

Open
rahul810050 wants to merge 3 commits intooaiedu:masterfrom
rahul810050:fix/questions-store-guards
Open

Fix Firestore empty snapshot crashes in questions store#10
rahul810050 wants to merge 3 commits intooaiedu:masterfrom
rahul810050:fix/questions-store-guards

Conversation

@rahul810050
Copy link

PR Summary

This PR fixes multiple runtime crashes in questions.store.js caused by
unguarded access to snapshot.docs[0].data().

Fixed issue: #9

Changes:

  • Added snapshot.empty guards for all Firestore queries
  • Prevented crashes on empty collections and deleted records
  • Fixed missing commit destructuring in actions
  • Improved stability for fresh and partially-initialized databases

No business logic changes.

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