mycase links failed... so fixed
This commit is contained in:
@@ -34,11 +34,13 @@ const RepAgent = (props) => {
|
||||
setRepFileName(formObj.representationForm.values);
|
||||
|
||||
let filterFilesList =
|
||||
props.currentView.caseReference.repDetails.filesList.filter(function (
|
||||
el
|
||||
) {
|
||||
return el != null;
|
||||
});
|
||||
props.currentView.caseReference.repDetails.hasOwnProperty("filesList")
|
||||
? props.currentView.caseReference.repDetails.filesList.filter(
|
||||
function (el) {
|
||||
return el != null;
|
||||
}
|
||||
)
|
||||
: [];
|
||||
|
||||
const files = acceptedFiles.map((file) => (
|
||||
<li key={file.path}>
|
||||
@@ -180,6 +182,9 @@ const RepAgent = (props) => {
|
||||
{props.currentView.caseReference.hasOwnProperty(
|
||||
"repDetails"
|
||||
) &&
|
||||
props.currentView.caseReference.repDetails.hasOwnProperty(
|
||||
"filesList"
|
||||
) &&
|
||||
props.currentView.caseReference.repDetails
|
||||
.filesList.length > 0 ? (
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
|
||||
Reference in New Issue
Block a user