From afa4e33c5fc61af1c1bc759ecd0a0f9e73b38eb9 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Fri, 14 Nov 2025 12:49:01 +0100 Subject: [PATCH] - fixed JS bug in amendmend page; --- src/pages/SoccorsoEditInstructorManager/index.js | 7 ++++--- src/pages/SoccorsoEditPreInstructor/index.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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) =>
  1. {v} -
  2. )} + ) : 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) =>
  1. {v} -
  2. )} + ) : null}
: null}