- fixed rejecting/approving for V2 of evaluation;
This commit is contained in:
@@ -415,6 +415,7 @@ const DomandaEditInstructorManager = () => {
|
||||
} else if (data.evaluationVersion === 'V2') {
|
||||
const newFormValues = getTransformedSubmitData();
|
||||
const submitData = {
|
||||
applicationStatus: 'APPROVED',
|
||||
formFields: newFormValues,
|
||||
files: klona(data.files),
|
||||
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
||||
@@ -441,7 +442,6 @@ const DomandaEditInstructorManager = () => {
|
||||
}, [data]);
|
||||
|
||||
const doReject = useCallback(() => {
|
||||
console.log('doReject', data.evaluationVersion)
|
||||
if (data.evaluationVersion === 'V1') {
|
||||
const submitData = {
|
||||
applicationStatus: 'REJECTED',
|
||||
@@ -451,7 +451,7 @@ const DomandaEditInstructorManager = () => {
|
||||
note: data.note,
|
||||
motivation
|
||||
}
|
||||
console.log('doReject2', data.assignedApplicationId)
|
||||
|
||||
setLoading(true);
|
||||
setIsVisibleCompleteDialog(false);
|
||||
ApplicationEvaluationService.updateEvaluation(
|
||||
@@ -463,6 +463,7 @@ const DomandaEditInstructorManager = () => {
|
||||
} else if (data.evaluationVersion === 'V2') {
|
||||
const newFormValues = getTransformedSubmitData();
|
||||
const submitData = {
|
||||
applicationStatus: 'REJECTED',
|
||||
formFields: newFormValues,
|
||||
files: klona(data.files),
|
||||
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
||||
|
||||
Reference in New Issue
Block a user