- implemented uplaod company docs;
This commit is contained in:
@@ -1295,12 +1295,17 @@ const DomandaEditPreInstructor = () => {
|
||||
setIsAdmissible(scoreSum >= maxScore);
|
||||
}, [data]);
|
||||
|
||||
useEffect(() => {
|
||||
const parsed = parseInt(id)
|
||||
const refetchEvaluation = useCallback(() => {
|
||||
const parsed = parseInt(id);
|
||||
const entityId = !isNaN(parsed) ? parsed : 0;
|
||||
|
||||
storeSet('setAsyncRequest');
|
||||
ApplicationEvaluationService.getEvaluationVersionByApplId(entityId, getVersion, errGetVersion);
|
||||
}, [id]);
|
||||
|
||||
useEffect(() => {
|
||||
refetchEvaluation();
|
||||
const parsed = parseInt(id)
|
||||
const entityId = !isNaN(parsed) ? parsed : 0;
|
||||
AmendmentsService.getSoccorsoByApplId(entityId, getAmendmentsCallback, errGetAmendmentsCallback, [
|
||||
['statuses', ['AWAITING', 'RESPONSE_RECEIVED', 'DRAFT']]
|
||||
]);
|
||||
@@ -1365,6 +1370,7 @@ const DomandaEditPreInstructor = () => {
|
||||
})
|
||||
))
|
||||
})}
|
||||
refetchFn={refetchEvaluation}
|
||||
shouldDisable={['APPROVED', 'REJECTED'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
||||
sourceId={data.id}
|
||||
applicationId={data.applicationId}
|
||||
|
||||
Reference in New Issue
Block a user