main
alex 2024-03-06 21:33:00 +01:00
parent 09a959153d
commit e10081a5cd
1 changed files with 8 additions and 0 deletions

View File

@ -644,6 +644,14 @@ function TabContentDealInfo({ form }) {
</CollapseContainer> </CollapseContainer>
); );
// 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 ( return (
<MySupsenseFallback> <MySupsenseFallback>
<Form form={form} layout="vertical"> <Form form={form} layout="vertical">