mycase links failed... so fixed

This commit is contained in:
2024-11-07 07:53:48 +00:00
parent c1180354e0
commit c869fdc6c4
7 changed files with 70 additions and 55 deletions
@@ -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">