added fixes to reduce error when calling module details and filtering of docs
This commit is contained in:
@@ -242,7 +242,8 @@ const SearchResults = (props) => {
|
||||
'")]',
|
||||
searchDetailsObj
|
||||
);
|
||||
detailsObj = detailsObj[0];
|
||||
|
||||
detailsObj = detailsObj[0] || {};
|
||||
return (
|
||||
<div
|
||||
className="govuk-summary-list__row"
|
||||
@@ -285,12 +286,14 @@ const SearchResults = (props) => {
|
||||
"showLoginCheck":
|
||||
props.showLoginCheck,
|
||||
"specialistProcess":
|
||||
detailsObj.pinswg_speacialistcaseprocess !=
|
||||
null ||
|
||||
detailsObj.pinswg_specialistcaseprocess !=
|
||||
null
|
||||
? detailsObj.pinswg_speacialistcaseprocess ||
|
||||
detailsObj.pinswg_specialistcaseprocess
|
||||
detailsObj.hasOwnProperty(
|
||||
"pinswg_speacialistcaseprocess"
|
||||
)
|
||||
? detailsObj.pinswg_speacialistcaseprocess
|
||||
: detailsObj.hasOwnProperty(
|
||||
"pinswg_specialistcaseprocess"
|
||||
)
|
||||
? detailsObj.pinswg_specialistcaseprocess
|
||||
: "",
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user