check filename upload
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ CLIENT_SECRET = V288Q~P1lFMvvX9Xnkx2pLixK~GOREH983Owqc1E
|
||||
RELAY_ROOT = https://ar-ns-lz-pedw-ppe-ukw-01.servicebus.windows.net/ar-hc-lz-pedw-ppe-ukw-01/
|
||||
RELAYURI = "ar-ns-lz-pedw-ppe-ukw-01.servicebus.windows.net"
|
||||
RELAYPATH = "ar-hc-lz-pedw-ppe-ukw-01"
|
||||
CRMURL = "ppcrm2016.llcdt.gov.wales/UATPINS"
|
||||
CRMURL = "ppcrm2016.llcdt.gov.wales/PPPINSWales"
|
||||
|
||||
|
||||
# //Prod Oauth WGO
|
||||
|
||||
@@ -587,6 +587,7 @@ let MakeRepresentation = (props) => {
|
||||
let updateBody = values || {};
|
||||
const buildFileArray = [];
|
||||
let newbuildArr = [];
|
||||
|
||||
setSavingStatus(useSaveStatus);
|
||||
|
||||
Object.assign(values, {
|
||||
@@ -726,17 +727,17 @@ let MakeRepresentation = (props) => {
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
))
|
||||
: // (values.hasOwnProperty("representationDocuments") &&
|
||||
// (values.representationDocuments.map((Blob) =>
|
||||
// buildFileArray.push({
|
||||
// "name": Blob.name,
|
||||
// "size": Blob.size,
|
||||
// })
|
||||
// ),
|
||||
// Object.assign(values, {
|
||||
// "filesList": buildFileArray,
|
||||
// }))),
|
||||
console.log("zxcvbnm"),
|
||||
: values.hasOwnProperty("representationDocuments") &&
|
||||
(values.representationDocuments.map((Blob) =>
|
||||
buildFileArray.push({
|
||||
"name": Blob.name,
|
||||
"size": Blob.size,
|
||||
})
|
||||
),
|
||||
Object.assign(values, {
|
||||
"filesList": buildFileArray,
|
||||
})),
|
||||
console.log("zxcvbnm"),
|
||||
uploadRepresentationFiles(values),
|
||||
generateRepPDF(
|
||||
values,
|
||||
|
||||
@@ -111,9 +111,11 @@ export const statement_pdf = ({ docProps }) => {
|
||||
let datestr = values.pinswg_name.split("-");
|
||||
let signedDate = datestr[2] + "/" + datestr[1] + "/" + datestr[0];
|
||||
let appealTypeValue = getFormCollectionByID(values.appealType);
|
||||
let filterFilesList = values.filesList.filter(function (el) {
|
||||
return el != null;
|
||||
});
|
||||
let filterFilesList = values.hasOwnProperty("filesList")
|
||||
? values.filesList.filter(function (el) {
|
||||
return el != null;
|
||||
})
|
||||
: [];
|
||||
|
||||
return (
|
||||
<Document>
|
||||
|
||||
Reference in New Issue
Block a user