- temp fix: form field items from JS config;
- fixed displaying times for call; - fixed reading saved flow;
This commit is contained in:
@@ -252,6 +252,13 @@ const BandoFlowEdit = () => {
|
||||
}
|
||||
}, [forms]);
|
||||
|
||||
useEffect(() => {
|
||||
const chosenFieldItem = head(flowData.filter(o => !isEmpty(o.chosenField)));
|
||||
if (chosenFieldItem) {
|
||||
setMainField(chosenFieldItem.chosenField);
|
||||
}
|
||||
}, [flowData])
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
storeSet.main.flowForms([]);
|
||||
@@ -302,7 +309,7 @@ const BandoFlowEdit = () => {
|
||||
placeholder={__('Scegli il campo', 'gepafin')}/>
|
||||
</div> : null}
|
||||
|
||||
{forms.length > 2 && mainField && isFlowAllowed || forms.length === 2 && isFlowAllowed
|
||||
{(forms.length > 2 && mainField && isFlowAllowed) || (forms.length === 2 && isFlowAllowed)
|
||||
? <div className="appForm__field">
|
||||
<label htmlFor="finalForm">{__('Scegli form finale', 'gepafin')}</label>
|
||||
<Dropdown
|
||||
|
||||
Reference in New Issue
Block a user