Skip to content

Commit

Permalink
Add targetPath to job.fileInputs
Browse files Browse the repository at this point in the history
targetPath from app definition is added to the job submission under job.fileInputs
  • Loading branch information
prithuls authored Aug 3, 2023
1 parent 0d616b0 commit e917ee9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/components/Applications/AppForm/AppForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,13 @@ export const AppSchemaForm = ({ app }) => {

job.fileInputs = Object.entries(job.fileInputs)
.map(([k, v]) => {
return { name: k, sourceUrl: v };
return {
name: k,
sourceUrl: v,
targetPath: app.definition.jobAttributes.fileInputs.find(
(file) => file.name === k
).targetPath,
};
})
.filter((fileInput) => fileInput.sourceUrl); // filter out any empty values

Expand Down

0 comments on commit e917ee9

Please sign in to comment.