- fixed JS bug in amendmend page;

This commit is contained in:
Vitalii Kiiko
2025-11-14 12:49:01 +01:00
parent baebc7496b
commit afa4e33c5f
2 changed files with 8 additions and 6 deletions

View File

@@ -435,7 +435,7 @@ const SoccorsoEditPreInstructor = () => {
</div> : null}
{(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">
<h3>{__('Documenti richiesti', 'gepafin')}</h3>
<ol className="appPageSection__list">
@@ -444,10 +444,11 @@ const SoccorsoEditPreInstructor = () => {
style={{ flexDirection: 'row' }}>
<span>{o.label}</span>
</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' }}>
<span>{v}</span>
</li>)}
</li>) : null}
</ol>
</div> : null}