fix(core-flows): Fix line item ids passed to deleteReservationsByLineItemsStep (#11465)

This commit is contained in:
Kasper Fabricius Kristensen
2025-02-14 15:10:52 +01:00
committed by GitHub
parent 825b8ad260
commit b37010857a
2 changed files with 14 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(core-flows): Fix line item ids passed to deleteReservationsByLineItemsStep
@@ -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])]
} }
) )