fix(core-flow): invalid update quantity in update line item in cart workflow (#10405)
* fix: invalid update quantity in update line item in cart workflow * test: update cart workflow test * fix: rm shallow copy in transform
This commit is contained in:
@@ -62,8 +62,8 @@ export const updateLineItemInCartWorkflow = createWorkflow(
|
||||
|
||||
validateVariantPricesStep({ variants })
|
||||
|
||||
const items = transform({ item }, ({ item }) => {
|
||||
return [item]
|
||||
const items = transform({ input, item }, (data) => {
|
||||
return [Object.assign(data.item, { quantity: data.input.update.quantity })]
|
||||
})
|
||||
|
||||
confirmVariantInventoryWorkflow.runAsStep({
|
||||
|
||||
Reference in New Issue
Block a user