updated filelist obj to check else default to empty array
This commit is contained in:
@@ -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" &&
|
||||
|
||||
Reference in New Issue
Block a user