fix(core-flows): Fix line item ids passed to deleteReservationsByLineItemsStep (#11465)
This commit is contained in:
1 parent
825b8ad260
commit
b37010857a
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||
) // items that have been removed with the change
|
||||
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