partial save on questionnaire
This commit is contained in:
@@ -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
|
||||
));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user