Skip to content

Fix: Firestore empty snapshot crashes in request store#12

Open
rahul810050 wants to merge 2 commits intooaiedu:masterfrom
rahul810050:fix/request-store-guards
Open

Fix: Firestore empty snapshot crashes in request store#12
rahul810050 wants to merge 2 commits intooaiedu:masterfrom
rahul810050:fix/request-store-guards

Conversation

@rahul810050
Copy link

PR Description

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

Fixed issue: #11

Changes:

  • Added snapshot.empty guards for all Firestore queries
  • Prevented crashes on empty collections and pagination
  • Fixed data-size access safety
  • Corrected initial state typo for deleteMarkRequests

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