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;
|
||||
|
||||
|
||||
@@ -361,7 +361,7 @@ export const RenderLPACondtionalRadioList = ({
|
||||
}) => {
|
||||
const required = (value) => (value ? undefined : "Required");
|
||||
|
||||
console.log(error);
|
||||
//console.log(error);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -463,7 +463,7 @@ export const RenderPickList = ({
|
||||
errorMsg,
|
||||
...custom
|
||||
}) => {
|
||||
console.log(custom.disabled);
|
||||
// console.log(custom.disabled);
|
||||
let { t } = useTranslation();
|
||||
|
||||
return (
|
||||
|
||||
@@ -391,10 +391,10 @@ let RepLPA = (props) => {
|
||||
{showQuestionnaireSection > 1 && (
|
||||
<a
|
||||
onClick={() => {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
// window.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: "smooth",
|
||||
// });
|
||||
setRepFileName(
|
||||
props.formObj[
|
||||
"representationForm"
|
||||
|
||||
+1
-2
@@ -89,7 +89,7 @@ let S78_Questionnaire = (props) => {
|
||||
);
|
||||
resultsObj = resultsObj[0];
|
||||
|
||||
console.log(resultsObj);
|
||||
//console.log(resultsObj);
|
||||
|
||||
const onHandleSubmit = (values) => {
|
||||
//if (currentSection == sectionCount) {
|
||||
@@ -1065,7 +1065,6 @@ S78_Questionnaire = connect((state) => {
|
||||
})(S78_Questionnaire);
|
||||
|
||||
const mapStateToProps = (state, props) => {
|
||||
console.log();
|
||||
return {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
|
||||
Reference in New Issue
Block a user