marthaegrimaldi / marthaegrimaldi/zomato-clone-source-code
"Orders" Page Displays Error Instead of Order List
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
Research direction
No files, tests, or entry points are identified. First reproduce the error by opening the admin dashboard's Orders page, then trace the GraphQL response for the User.name field. Done means administrators can view and manage orders when a user name is missing, without the page failing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, javascript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100