updated view all to set missing current view state
This commit is contained in:
@@ -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={
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user