diff --git a/src/components/pages/marketing/DeliveryOrderFormModal.tsx b/src/components/pages/marketing/DeliveryOrderFormModal.tsx index 4635c826..eb488285 100644 --- a/src/components/pages/marketing/DeliveryOrderFormModal.tsx +++ b/src/components/pages/marketing/DeliveryOrderFormModal.tsx @@ -368,7 +368,9 @@ const DeliveryOrderFormModal = ({}: { initialValues?: Marketing }) => { const currentProducts = deliveryOrderValues?.find( (product) => product.id == id ); - setSelectedDeliveryProduct(values ?? currentProducts ?? null); + + setSelectedDeliveryProduct(currentProducts ?? values ?? null); + if (id) { setStep(2); }