fix(core-flows): Fix line item ids passed to deleteReservationsByLineItemsStep (#11465)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/core-flows": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(core-flows): Fix line item ids passed to deleteReservationsByLineItemsStep
|
||||||
+1
-1
@@ -198,7 +198,7 @@ export const confirmOrderEditRequestWorkflow = createWorkflow(
|
|||||||
({ id }) => id
|
({ id }) => id
|
||||||
) // items that have been removed with the change
|
) // items that have been removed with the change
|
||||||
const newItemIds = data.orderItems.items.map(({ id }) => id)
|
const newItemIds = data.orderItems.items.map(({ id }) => id)
|
||||||
return [...new Set([...previousItemIds, newItemIds])]
|
return [...new Set([...previousItemIds, ...newItemIds])]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user