updated filelist obj to check else default to empty array

This commit is contained in:
2024-11-07 14:05:58 +00:00
parent 172acf0560
commit d901b18ed4
5 changed files with 190 additions and 58 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ let BuildCheckSection = (props) => {
//console.log("attached docs: - ", buildAppealFilesArray);
buildAppealFilesArray = props.props.form.appealForm.values.filesList || [];
let filesUploadObj = props.appealType.fileList.value[0];
let filesUploadObj = props.appealType.fileList.hasOwnProperty("value")
? props.appealType.fileList.value[0]
: [];
for (let key in filesUploadObj) {
typeof filesUploadObj[key].name != "undefined" &&