Skip to content

Fix Inbox render crash when question-requests size is null#22

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

Fix Inbox render crash when question-requests size is null#22
rahul810050 wants to merge 1 commit intooaiedu:masterfrom
rahul810050:fix/inbox-datasize-guard

Conversation

@rahul810050
Copy link

Fixed issue: #21

PR summary

Inbox.vue was crashing during initial render because the
pageAmount computed property accessed
getDataSize["question-requests"] before Firestore data
was loaded.

This PR adds defensive guards in Inbox.vue pagination
logic, preventing render-time crashes and keeping
pagination stable for both admin and non-admin users.

there is another error from request.store.js file which is handled in this pr #12

Before:
image

After:
image

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