- fixed JS bug in amendmend page;
This commit is contained in:
@@ -435,7 +435,7 @@ const SoccorsoEditInstructorManager = () => {
|
|||||||
</div> : null}
|
</div> : null}
|
||||||
|
|
||||||
{(data.formFields && !isEmpty(data.formFields)) || (data.amendmentType === 'SPECIAL' && !isNil(data.amendmentDocumentType)
|
{(data.formFields && !isEmpty(data.formFields)) || (data.amendmentType === 'SPECIAL' && !isNil(data.amendmentDocumentType)
|
||||||
&& amendmentRequestedDocs[data.amendmentDocumentType] && !isNil(amendmentRequestedDocs[data.amendmentDocumentType].map))
|
&& !isNil(amendmentRequestedDocs[data.amendmentDocumentType]) && !isNil(amendmentRequestedDocs[data.amendmentDocumentType].map))
|
||||||
? <div className="appPageSection">
|
? <div className="appPageSection">
|
||||||
<h3>{__('Documenti richiesti', 'gepafin')}</h3>
|
<h3>{__('Documenti richiesti', 'gepafin')}</h3>
|
||||||
<ol className="appPageSection__list">
|
<ol className="appPageSection__list">
|
||||||
@@ -444,10 +444,11 @@ const SoccorsoEditInstructorManager = () => {
|
|||||||
style={{ flexDirection: 'row' }}>
|
style={{ flexDirection: 'row' }}>
|
||||||
<span>{o.label}</span>
|
<span>{o.label}</span>
|
||||||
</li>) : null}
|
</li>) : null}
|
||||||
{amendmentRequestedDocs[data.amendmentDocumentType].map((v) => <li key={v}
|
{!isNil(amendmentRequestedDocs[data.amendmentDocumentType].map)
|
||||||
|
? amendmentRequestedDocs[data.amendmentDocumentType].map((v) => <li key={v}
|
||||||
style={{ flexDirection: 'row' }}>
|
style={{ flexDirection: 'row' }}>
|
||||||
<span>{v}</span>
|
<span>{v}</span>
|
||||||
</li>)}
|
</li>) : null}
|
||||||
</ol>
|
</ol>
|
||||||
</div> : null}
|
</div> : null}
|
||||||
|
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
</div> : null}
|
</div> : null}
|
||||||
|
|
||||||
{(data.formFields && !isEmpty(data.formFields)) || (data.amendmentType === 'SPECIAL' && !isNil(data.amendmentDocumentType)
|
{(data.formFields && !isEmpty(data.formFields)) || (data.amendmentType === 'SPECIAL' && !isNil(data.amendmentDocumentType)
|
||||||
&& amendmentRequestedDocs[data.amendmentDocumentType] && !isNil(amendmentRequestedDocs[data.amendmentDocumentType].map))
|
&& !isNil(amendmentRequestedDocs[data.amendmentDocumentType]))
|
||||||
? <div className="appPageSection">
|
? <div className="appPageSection">
|
||||||
<h3>{__('Documenti richiesti', 'gepafin')}</h3>
|
<h3>{__('Documenti richiesti', 'gepafin')}</h3>
|
||||||
<ol className="appPageSection__list">
|
<ol className="appPageSection__list">
|
||||||
@@ -444,10 +444,11 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
style={{ flexDirection: 'row' }}>
|
style={{ flexDirection: 'row' }}>
|
||||||
<span>{o.label}</span>
|
<span>{o.label}</span>
|
||||||
</li>) : null}
|
</li>) : null}
|
||||||
{amendmentRequestedDocs[data.amendmentDocumentType].map((v) => <li key={v}
|
{!isNil(amendmentRequestedDocs[data.amendmentDocumentType].map)
|
||||||
|
? amendmentRequestedDocs[data.amendmentDocumentType].map((v) => <li key={v}
|
||||||
style={{ flexDirection: 'row' }}>
|
style={{ flexDirection: 'row' }}>
|
||||||
<span>{v}</span>
|
<span>{v}</span>
|
||||||
</li>)}
|
</li>) : null}
|
||||||
</ol>
|
</ol>
|
||||||
</div> : null}
|
</div> : null}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user