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
Create an order with createOrdersWorkflow do not provide product_id and variant_id to the line item.
Check admin dashboard, order appears in Orders page
Click the order
Error appears
Expected behavior
Order details are shown
Screenshots
Code snippets
If applicable, add code samples to help explain your problem
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 providingproduct_id
andvariant_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
createOrdersWorkflow
do not provideproduct_id
andvariant_id
to the line item.Expected behavior
Order details are shown
Screenshots
Code snippets
If applicable, add code samples to help explain your problem
Additional context
Add any other context about the problem here