File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/core/core-flows/src/cart/workflows Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,22 @@ export const refreshCartItemsWorkflow = createWorkflow(
148148 list : false ,
149149 } ) . config ( { name : "refetch–cart" } )
150150
151+ const refreshCartInput = transform (
152+ { refetchedCart, input } ,
153+ ( { refetchedCart, input } ) => {
154+ return {
155+ cart : ! input . force_refresh ? refetchedCart : undefined ,
156+ cart_id : ! ! input . force_refresh ? input . cart_id : undefined ,
157+ }
158+ }
159+ )
160+
151161 refreshCartShippingMethodsWorkflow . runAsStep ( {
152- input : { cart : refetchedCart } ,
162+ input : refreshCartInput ,
153163 } )
154164
155165 updateTaxLinesWorkflow . runAsStep ( {
156- input : { cart : refetchedCart } ,
166+ input : refreshCartInput ,
157167 } )
158168
159169 const cartPromoCodes = transform (
You can’t perform that action at this time.
0 commit comments