- issue 122
- issue 123;
This commit is contained in:
@@ -122,6 +122,7 @@ const DomandaEditInstructorManager = () => {
|
||||
|
||||
const updateFlagsForSoccorso = useCallback((data) => {
|
||||
let nonRatedFilesLength = 0;
|
||||
let nonRatedAmmendFilesLength = 0;
|
||||
|
||||
if (data.files) {
|
||||
const nonRatedFiles = data.files
|
||||
@@ -134,10 +135,10 @@ const DomandaEditInstructorManager = () => {
|
||||
const nonRatedFiles = data.amendmentDetails
|
||||
.map(el => el.valid)
|
||||
.filter(v => isNil(v));
|
||||
nonRatedFilesLength = nonRatedFiles.length;
|
||||
nonRatedAmmendFilesLength = nonRatedFiles.length;
|
||||
}
|
||||
|
||||
setAllFilesRated(nonRatedFilesLength === 0);
|
||||
setAllFilesRated(nonRatedFilesLength === 0 && nonRatedAmmendFilesLength === 0);
|
||||
|
||||
if (data.evaluationVersion === 'V1') {
|
||||
if (data.checklist) {
|
||||
@@ -891,7 +892,7 @@ const DomandaEditInstructorManager = () => {
|
||||
storeSet.main.setAsyncRequest();
|
||||
ApplicationEvaluationService.getEvaluationVersionByApplId(entityId, getVersion, errGetVersion);
|
||||
AmendmentsService.getSoccorsoByApplId(entityId, getAmendmentsCallback, errGetAmendmentsCallback, [
|
||||
['statuses', 'AWAITING']
|
||||
['statuses', ['AWAITING', 'RESPONSE_RECEIVED']]
|
||||
]);
|
||||
}, [id]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user