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

Admin fails to render order details when line items are not linked to a variant #9756

Open
Bernix01 opened this issue Oct 24, 2024 · 1 comment

Comments

@Bernix01
Copy link

Bug report

Describe the bug

One is able to create order using createOrdersWorkflow with lineItems that are no linked to product variants i.e. not providing product_id and variant_id to the line item(s).

Admin dashboard fails to render the order details with console errors showing TypeError: item.variant is undefined

System information

Medusa version (including plugins): v2
Node.js version: 20
Database: postgres
Operating system: osx
Browser (if relevant): not relevant

Steps to reproduce the behavior

  1. Create an order with createOrdersWorkflow do not provide product_id and variant_id to the line item.
  2. Check admin dashboard, order appears in Orders page
  3. Click the order
  4. Error appears

Expected behavior

Order details are shown

Screenshots

image

Code snippets

If applicable, add code samples to help explain your problem

Additional context

Add any other context about the problem here

@Bernix01 Bernix01 changed the title Admin fails to render order with line items without linked variant Admin fails to render order details when line items are not linked to a variant Oct 24, 2024
@olivermrbl
Copy link
Contributor

@Bernix01, thanks for the report. We will get this patched in the near future.

@linear linear bot added the type: bug label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants