diff --git a/.changeset/twenty-carrots-matter.md b/.changeset/twenty-carrots-matter.md new file mode 100644 index 0000000000..103fc8118d --- /dev/null +++ b/.changeset/twenty-carrots-matter.md @@ -0,0 +1,5 @@ +--- +"@medusajs/core-flows": patch +--- + +fix(core-flows): fix warning for when usage in updateOrderTaxLinesWorkflow diff --git a/packages/core/core-flows/src/order/workflows/update-tax-lines.ts b/packages/core/core-flows/src/order/workflows/update-tax-lines.ts index 3dd426c27b..c3689418c2 100644 --- a/packages/core/core-flows/src/order/workflows/update-tax-lines.ts +++ b/packages/core/core-flows/src/order/workflows/update-tax-lines.ts @@ -197,7 +197,7 @@ export const updateOrderTaxLinesWorkflow = createWorkflow( options: { isList: false }, }).config({ name: "order-query" }) - const items = when({ input }, ({ input }) => { + const items = when("get-order-line-items", { input }, ({ input }) => { return input.item_ids!?.length > 0 }).then(() => { const { data: orderLineItems } = useQueryGraphStep({ @@ -209,7 +209,7 @@ export const updateOrderTaxLinesWorkflow = createWorkflow( return orderLineItems }) - const shippingMethods = when({ input }, ({ input }) => { + const shippingMethods = when("get-order-shipping-methods", { input }, ({ input }) => { return input.shipping_method_ids!?.length > 0 }).then(() => { const { data: orderShippingMethods } = useQueryGraphStep({