added in options for uploadstream for rep pdfs
This commit is contained in:
@@ -223,7 +223,7 @@ let MakeRepresentation = (props) => {
|
||||
const buildRepsArr = (detailsObj) => {
|
||||
let buildArr = [];
|
||||
|
||||
console.log(currentView.caseReference.appealType, "");
|
||||
// console.log(currentView.caseReference.appealType, "");
|
||||
|
||||
let todaysDate = new Date();
|
||||
|
||||
@@ -737,7 +737,6 @@ let MakeRepresentation = (props) => {
|
||||
Object.assign(values, {
|
||||
"filesList": buildFileArray,
|
||||
})),
|
||||
console.log("zxcvbnm"),
|
||||
uploadRepresentationFiles(values),
|
||||
generateRepPDF(
|
||||
values,
|
||||
@@ -750,11 +749,11 @@ let MakeRepresentation = (props) => {
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
values = setRepFileName(values);
|
||||
|
||||
console.log("onHandleSubmit form values - ", JSON.stringify(values));
|
||||
//console.log("onHandleSubmit form values - ", JSON.stringify(values));
|
||||
|
||||
const buildFileArray = [];
|
||||
|
||||
console.log("attached docs: - ", buildFileArray);
|
||||
//console.log("attached docs: - ", buildFileArray);
|
||||
|
||||
let setCaseDetailsObj = router.query.hasOwnProperty("state")
|
||||
? router.query.state == "edit"
|
||||
@@ -777,11 +776,11 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
detailsObj = detailsObj[0];
|
||||
|
||||
console.log(
|
||||
"Has data from form:",
|
||||
formObj.hasOwnProperty("representationForm") &&
|
||||
formObj.representationForm.hasOwnProperty("values")
|
||||
);
|
||||
// console.log(
|
||||
// "Has data from form:",
|
||||
// formObj.hasOwnProperty("representationForm") &&
|
||||
// formObj.representationForm.hasOwnProperty("values")
|
||||
// );
|
||||
|
||||
formObj.hasOwnProperty("representationForm") &&
|
||||
!router.query.hasOwnProperty("state") &&
|
||||
@@ -871,7 +870,6 @@ let MakeRepresentation = (props) => {
|
||||
Object.assign(values, { "locale": router.locale }),
|
||||
props.invalid == false &&
|
||||
updateRepresentation(values, false, false),
|
||||
console.log("qwerty"),
|
||||
// values.hasOwnProperty("representationDocuments") &&
|
||||
// (values.representationDocuments.map((Blob) =>
|
||||
// buildFileArray.push({
|
||||
@@ -904,13 +902,13 @@ let MakeRepresentation = (props) => {
|
||||
return _.includes(key, "representationDocuments");
|
||||
});
|
||||
|
||||
console.log(
|
||||
"\n////////////////////////\n upload files:",
|
||||
values.containerID,
|
||||
"\n////////////////////////\n fileListObj:",
|
||||
fileListObj,
|
||||
"\n////////////////////////\n"
|
||||
);
|
||||
// console.log(
|
||||
// "\n////////////////////////\n upload files:",
|
||||
// values.containerID,
|
||||
// "\n////////////////////////\n fileListObj:",
|
||||
// fileListObj,
|
||||
// "\n////////////////////////\n"
|
||||
// );
|
||||
|
||||
var dataObj = values;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user