"Orders" Page Displays Error Instead of Order List

Open
#914 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
graphql, javascript, react-native
Domain
api, backend

Research direction

No files or tests are identified. Start by reproducing the error on the admin Orders page, then trace the GraphQL query and User.name field through the dashboard and API; done means the order list renders when a user name is missing without blocking order management.

Written by the indexing model from the issue text.

Description

Describe the bug
On the admin dashboard, the "Orders" page displays the following error instead of the order list:
Error: Cannot return null for non-nullable field User.name.
This prevents administrators from viewing and managing orders.

To Reproduce
Steps to reproduce the behavior:

Log in to the admin dashboard.
Navigate to the "Orders" page.
Observe the error message: "Error: Cannot return null for non-nullable field User.name."
Expected behavior
The orders should be displayed normally. If a user name is missing, the system should handle it gracefully instead of throwing an error that blocks the entire page.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows 11

Browser: Chrome

Additional context
This appears to be a GraphQL issue where a null value is returned for a required field. The system should allow for null values or provide fallback handling to prevent the UI from breaking.

Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from patriciaperez90/react-native-based-uber-eats-clone-app

All issues in patriciaperez90/react-native-based-uber-eats-clone-app

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.