Skip to content

Commit

Permalink
Pass title in the payload
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f committed Nov 1, 2023
1 parent 65823b0 commit c4b13d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/ui/src/pages/form/medicaid-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export const MedicaidForm = () => {
uploadKeys
.filter((key) => data.attachments[key] !== undefined)
.forEach((uploadKey, index) => {
const attachmenListObject = attachmentList?.find(
(item) => item[0] === uploadKey
);
const title = attachmenListObject ? attachmenListObject[1] : "Other";
const fileGroup = data.attachments[uploadKey] as File[];

// upload all files in this group and track there name
Expand All @@ -97,7 +101,7 @@ export const MedicaidForm = () => {
fileMetaData.push({
key: loadPresignedUrls[index].key,
filename: file.name,
title: "Testing",
title: title,
bucket: loadPresignedUrls[index].bucket,
uploadDate: Date.now(),
});
Expand Down

0 comments on commit c4b13d4

Please sign in to comment.