Commit 3a0920be authored by Sakthivel G's avatar Sakthivel G
Browse files

fix: defect 57937

Showing with 32 additions and 7 deletions
+32 -7
......@@ -200,13 +200,23 @@ export const ConsentFormView = ({
defaultValues: k.defaultValues,
fieldType: k.fieldType,
isCorrect:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["value"] === "correct"
? true
: false,
inspectionValue:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["inspectionValue"],
comments: tempArrayTwo[n].fields[k.label]["comments"],
attachments: tempArrayTwo[n].fields[k.label]["attachments"],
comments:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["comments"],
attachments:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["attachments"],
});
}
});
......@@ -856,13 +866,11 @@ export const ConsentFormView = ({
</div>
<div className="mt-3">
<InspectCheckOne
label="Is the given information found correct?"
inspectionValue={k.inspectionValue}
disableEdit={true}
showAttachment={false}
attachments={k.attachments}
children={
<div className="d-flex flex-row">
......
......@@ -192,12 +192,19 @@ export const FormView = ({ applicationData, formData }: FormViewProps) => {
defaultValues: k.defaultValues,
fieldType: k.fieldType,
isCorrect:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["value"] === "correct"
? true
: false,
inspectionValue:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["inspectionValue"],
comments: tempArrayTwo[n].fields[k.label]["comments"],
comments:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["comments"],
attachments: [],
});
}
......
......@@ -189,13 +189,23 @@ export const ReviewApplicationLayout = ({
defaultValues: k.defaultValues,
fieldType: k.fieldType,
isCorrect:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["value"] === "correct"
? true
: false,
inspectionValue:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["inspectionValue"],
comments: tempArrayTwo[n].fields[k.label]["comments"],
attachments: tempArrayTwo[n].fields[k.label]["attachments"],
comments:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["comments"],
attachments:
tempArrayTwo &&
tempArrayTwo[n].fields.length &&
tempArrayTwo[n].fields[k.label]["attachments"],
});
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment