From e10081a5cda9611bf6bf96a97bb904063aa12bed Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 6 Mar 2024 21:33:00 +0100 Subject: [PATCH] pipeline --- src/Pages/CrmTest/CrmTest.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 (