Merged PR 2295: resolved lint warnings
resolved lint warnings Related work items: #22873
This commit is contained in:
@@ -874,15 +874,29 @@ let MakeRepresentation = (props) => {
|
||||
// Prepare data object for upload
|
||||
const dataObj = cleanedValues;
|
||||
|
||||
const caseFolderReference =
|
||||
props.caseReference ||
|
||||
dataObj.ticketnumber ||
|
||||
currentView?.caseReference?.ticketnumber ||
|
||||
currentView?.caseReference?.currentReference ||
|
||||
dataObj.caseRef ||
|
||||
"";
|
||||
|
||||
// Update links on values
|
||||
const updatedValues = updateLinks(cleanedValues);
|
||||
|
||||
const resolvedContainerID =
|
||||
updatedValues.containerID ||
|
||||
dataObj.containerID ||
|
||||
props?.props?.accountDetails?.containerID ||
|
||||
props?.props?.accountDetails?.accountDetails?.containerID;
|
||||
|
||||
// Perform file upload and return the promise
|
||||
return uploadRepFiles(
|
||||
dataObj,
|
||||
[{}],
|
||||
updatedValues.containerID,
|
||||
`${props.caseReference}/${dataObj.repfile_name}`
|
||||
resolvedContainerID,
|
||||
`${caseFolderReference}/${dataObj.repfile_name}`
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user