diff --git a/src/Pages/CrmTest/CrmTest.js b/src/Pages/CrmTest/CrmTest.js index 049b620..e3b95e4 100644 --- a/src/Pages/CrmTest/CrmTest.js +++ b/src/Pages/CrmTest/CrmTest.js @@ -644,6 +644,14 @@ function TabContentDealInfo({ form }) { ); + // set deal phase to 1 when the pipeline changes + // without this the user could set a deal phase that is not available for the selected pipeline + useEffect(() => { + form.setFieldsValue({ + DealPhase: 1, + }); + }, [pipeline]); + return (