check filename upload

This commit is contained in:
2024-11-14 11:01:58 +00:00
parent 02f8cd706c
commit 81fbf008ea
3 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -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
+12 -11
View File
@@ -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,
+5 -3
View File
@@ -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>