- saving progress;
This commit is contained in:
@@ -324,10 +324,7 @@ const SoccorsoEditPreInstructor = () => {
|
||||
AmendmentsService.getSoccorsoById(getCallback, errGetCallback, [['id', soccorsoEntityId]]);
|
||||
}, [amendmentId]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log(data);
|
||||
}, [data]);
|
||||
|
||||
console.log('data', data.amendmentDocuments);
|
||||
return (
|
||||
<div className="appPage">
|
||||
<div className="appPage__pageHeader">
|
||||
@@ -426,7 +423,7 @@ const SoccorsoEditPreInstructor = () => {
|
||||
defaultValue={formInitialData[o.fieldId] ? formInitialData[o.fieldId] : []}
|
||||
accept={[]}
|
||||
source="AMENDMENT"
|
||||
sourceId={data.applicationId}
|
||||
sourceId={amendmentId}
|
||||
multiple={true}
|
||||
/>
|
||||
})}
|
||||
@@ -435,14 +432,15 @@ const SoccorsoEditPreInstructor = () => {
|
||||
|
||||
<div className="appPageSection">
|
||||
<h2>{__('Documenti aggiuntivi', 'gepafin')}</h2>
|
||||
<RepeaterFields
|
||||
{data.id
|
||||
? <RepeaterFields
|
||||
defaultValue={data.amendmentDocuments ?? []}
|
||||
updateFn={(data) => updateNewAmendmentData(
|
||||
data,
|
||||
['amendmentDocuments']
|
||||
)}
|
||||
sourceId={amendmentId}
|
||||
sourceName="AMENDMENT"/>
|
||||
sourceName="AMENDMENT"/> : null}
|
||||
</div>
|
||||
|
||||
<div className="appForm__field">
|
||||
|
||||
Reference in New Issue
Block a user