Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'items' of undefined on order query #639

Closed
michaelbromley opened this issue Jan 11, 2021 · 0 comments
Closed

Cannot read property 'items' of undefined on order query #639

michaelbromley opened this issue Jan 11, 2021 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working
Milestone

Comments

@michaelbromley
Copy link
Member

Describe the bug
When querying an Order with no items, Admin API returns:

[
  {
    "message": "Cannot read property 'items' of undefined",
    "locations": [
      {
        "line": 105,
        "column": 3
      }
    ],
    "path": [
      "order",
      "fulfillments"
    ]
  }
]

To Reproduce
Steps to reproduce the behavior:

  1. In storefront/Shop API add an item to a new order
  2. Remove that item from the order
  3. In the Admin UI try to view that order detail page
  4. See error

Expected behavior
No error

Environment (please complete the following information):

  • @vendure/core version: 0.18.1
  • Nodejs version: 12.4
  • Database (mysql/postgres etc): mariadb
@michaelbromley michaelbromley added the type: bug 🐛 Something isn't working label Jan 11, 2021
@michaelbromley michaelbromley self-assigned this Jan 11, 2021
@michaelbromley michaelbromley added this to the v0.18.2 milestone Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant