From 0894823c10c156ab1656059d463d2d5f60af6367 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Thu, 26 Jun 2025 10:26:14 +0200 Subject: [PATCH] - fixed disabled note field for instructor; --- src/pages/DomandaEditInstructorManager/index.js | 2 +- src/pages/DomandaEditPreInstructor/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index 8601ddb..1c41c99 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -596,7 +596,7 @@ const DomandaEditInstructorManager = () => { const shouldDisableField = useCallback((fieldName) => { return !['EVALUATION', 'ADMISSIBLE'].includes(data.applicationStatus) - || (['ADMISSIBLE'].includes(data.applicationStatus) && fieldName !== 'criteria') + || (['ADMISSIBLE', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus) && !['criteria', 'note'].includes(fieldName)) || (fieldName === 'files' && !isEmpty(data.amendmentDetails)) }, [data.applicationStatus]); diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js index d48278a..dd69b96 100644 --- a/src/pages/DomandaEditPreInstructor/index.js +++ b/src/pages/DomandaEditPreInstructor/index.js @@ -595,7 +595,7 @@ const DomandaEditPreInstructor = () => { const shouldDisableField = useCallback((fieldName) => { return !['EVALUATION', 'ADMISSIBLE'].includes(data.applicationStatus) - || (['ADMISSIBLE'].includes(data.applicationStatus) && !['criteria', 'note'].includes(fieldName)) + || (['ADMISSIBLE', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus) && !['criteria', 'note'].includes(fieldName)) || (fieldName === 'files' && !isEmpty(data.amendmentDetails)) }, [data.applicationStatus]);