partial save on questionnaire

This commit is contained in:
2024-05-23 09:44:01 +01:00
parent 6282388021
commit 4f10118020
+19 -2
View File
@@ -594,6 +594,7 @@ let MakeRepresentation = (props) => {
"returnLink": "",
"linkExpiry": 10 * 60,
};
props.currentView.representationSubmit == "true"
? (sendSavedEmail == true &&
sendEmail(
@@ -608,8 +609,8 @@ let MakeRepresentation = (props) => {
? router.locale + "/myportal"
: "/myportal"
))
: useSaveStatus &&
(values.hasOwnProperty("representationDocuments") &&
: useSaveStatus
? (values.hasOwnProperty("representationDocuments") &&
(values.representationDocuments.map((Blob) =>
buildFileArray.push({
"name": Blob.name,
@@ -629,6 +630,22 @@ let MakeRepresentation = (props) => {
router.locale != "en"
? router.locale + "/myportal"
: "/myportal"
))
: (values.hasOwnProperty("representationDocuments") &&
(values.representationDocuments.map((Blob) =>
buildFileArray.push({
"name": Blob.name,
"size": Blob.size,
})
),
Object.assign(values, {
"filesList": buildFileArray,
})),
uploadRepresentationFiles(values),
generateRepPDF(
values,
props.props.accountDetails.containerID,
currentView.caseReference.currentReference
));
};