- fixed bug when was sending the wrong ID for uploading files;

This commit is contained in:
Vitalii Kiiko
2025-02-18 13:55:50 +01:00
parent 2dff0bdfcf
commit 008a78a8b1
2 changed files with 4 additions and 4 deletions

View File

@@ -739,7 +739,7 @@ const DomandaEditInstructorManager = () => {
if (data.evaluationVersion === 'V1') { if (data.evaluationVersion === 'V1') {
return !allFilesRated || !atLeastOneChecked; return !allFilesRated || !atLeastOneChecked;
} else if (data.evaluationVersion === 'V2') { } else if (data.evaluationVersion === 'V2') {
return !atLeastOneChecked; return !allFilesRated || !atLeastOneChecked;
} else { } else {
return true; return true;
} }
@@ -939,7 +939,7 @@ const DomandaEditInstructorManager = () => {
['evaluationDocument'] ['evaluationDocument']
)} )}
shouldDisable={['APPROVED', 'REJECTED'].includes(data.applicationStatus) || evaluationBlockedForUser(data)} shouldDisable={['APPROVED', 'REJECTED'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
sourceId={data.assignedApplicationId} sourceId={data.applicationId}
sourceName="evaluation"/> sourceName="evaluation"/>
</div> </div>

View File

@@ -741,7 +741,7 @@ const DomandaEditPreInstructor = () => {
if (data.evaluationVersion === 'V1') { if (data.evaluationVersion === 'V1') {
return !allFilesRated || !atLeastOneChecked; return !allFilesRated || !atLeastOneChecked;
} else if (data.evaluationVersion === 'V2') { } else if (data.evaluationVersion === 'V2') {
return !atLeastOneChecked; return !allFilesRated || !atLeastOneChecked;
} else { } else {
return true; return true;
} }
@@ -944,7 +944,7 @@ const DomandaEditPreInstructor = () => {
['evaluationDocument'] ['evaluationDocument']
)} )}
shouldDisable={['APPROVED', 'REJECTED'].includes(data.applicationStatus) || evaluationBlockedForUser(data)} shouldDisable={['APPROVED', 'REJECTED'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
sourceId={data.assignedApplicationId} sourceId={data.applicationId}
sourceName="evaluation"/> sourceName="evaluation"/>
</div> </div>