updated view all to set missing current view state

This commit is contained in:
2024-06-05 12:21:39 +01:00
parent 7d82328b02
commit 5001fbcbfe
5 changed files with 281 additions and 12 deletions
@@ -304,11 +304,11 @@ const RepCompleteSubmit = (props) => {
<dd className="govuk-summary-list__value">
{formObj.representationForm.values.hasOwnProperty(
"representationDocuments"
"filesList"
) &&
formObj.representationForm.values
.representationDocuments.length > 0
? formObj.representationForm.values.representationDocuments.map(
.filesList.length > 0
? formObj.representationForm.values.filesList.map(
(blob, i) => (
<div
key={
@@ -317,7 +317,7 @@ const AwaitingSubmissionFromBlob = (props) => {
<TopThreeRow />
{props.awaitingSubmissionFromBlob["@odata.count"] > 3 && (
{props.awaitingSubmissionFromBlob["@odata.count"] > 1 && (
<div className="cardVieAll">
<Link
href={
+7 -2
View File
@@ -144,6 +144,7 @@ const ViewAllResults = (props) => {
// ? searchDetailsObj[key].value[0]
// : searchDetailsObj[key];
console.log(resultsArr[key]);
resultsRowArr.push(
<div className="govuk-summary-list__row" key={key}>
<dd className="govuk-summary-list__value govuk-!-font-size-16 govuk-!-padding-left-2">
@@ -185,14 +186,18 @@ const ViewAllResults = (props) => {
"&casereference=" +
resultsArr[key].title +
"&inid=" +
resultsArr[key].incidentid
resultsArr[key].incidentid +
"&key=" +
currentView.viewKey
: router.locale == "cy"
? myportal == true
? "/fymhorth/achos"
: "/achos"
: myportal == true
? "/myportal/case/" +
resultsArr[key].ticketnumber
resultsArr[key].ticketnumber +
"?key=" +
currentView.viewKey
: "/case/" +
resultsArr[key].ticketnumber
}