diff --git a/src/pages/SoccorsoEditInstructorManager/index.js b/src/pages/SoccorsoEditInstructorManager/index.js
index 256e0e8..15c3534 100644
--- a/src/pages/SoccorsoEditInstructorManager/index.js
+++ b/src/pages/SoccorsoEditInstructorManager/index.js
@@ -435,7 +435,7 @@ const SoccorsoEditInstructorManager = () => {
: null}
{(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))
?
{__('Documenti richiesti', 'gepafin')}
@@ -444,10 +444,11 @@ const SoccorsoEditInstructorManager = () => {
style={{ flexDirection: 'row' }}>
{o.label}
) : null}
- {amendmentRequestedDocs[data.amendmentDocumentType].map((v) => -
-
{v}
-
)}
+ ) : null}
: null}
diff --git a/src/pages/SoccorsoEditPreInstructor/index.js b/src/pages/SoccorsoEditPreInstructor/index.js
index e58976a..15949f1 100644
--- a/src/pages/SoccorsoEditPreInstructor/index.js
+++ b/src/pages/SoccorsoEditPreInstructor/index.js
@@ -435,7 +435,7 @@ const SoccorsoEditPreInstructor = () => {
: null}
{(data.formFields && !isEmpty(data.formFields)) || (data.amendmentType === 'SPECIAL' && !isNil(data.amendmentDocumentType)
- && amendmentRequestedDocs[data.amendmentDocumentType] && !isNil(amendmentRequestedDocs[data.amendmentDocumentType].map))
+ && !isNil(amendmentRequestedDocs[data.amendmentDocumentType]))
?
{__('Documenti richiesti', 'gepafin')}
@@ -444,10 +444,11 @@ const SoccorsoEditPreInstructor = () => {
style={{ flexDirection: 'row' }}>
{o.label}
) : null}
- {amendmentRequestedDocs[data.amendmentDocumentType].map((v) => -
-
{v}
-
)}
+ ) : null}
: null}