hide reps button & add rich text for reps

This commit is contained in:
2022-10-12 12:23:26 +01:00
parent 33053a578b
commit 96387db56e
22 changed files with 531 additions and 79 deletions
+17 -1
View File
@@ -12,6 +12,8 @@ import {
getPersonalAccount,
getPortalModuleDetails,
getWatchedCases,
consoleLogger,
getCase,
} from "../../actions";
import { createContainer } from "../../actions/azurestorage";
import { getProviderConfig } from "../../actions/govgateway";
@@ -255,9 +257,23 @@ export const getServerSideProps = wrapper.getServerSideProps(
);
const getDetails = (resultsObj, detailsType) => {
//console.log(detailsType);
let detailsArr = [];
resultsObj = resultsObj.value;
if (detailsType == "myRepresentations") {
const repsObj = resultsObj.map((searchDetail, index) => {
detailsArr.push(
getCase(searchDetail["_pinswg_case_value"]).then((data) => {
return getPortalModuleDetails(
getFormCollectionByID(data.pinswg_appealcasetype)
.LogicalCollectionName,
data.ticketnumber
);
})
);
});
}
const detailsObj = resultsObj.map((searchDetail, index) => {
if (searchDetail.pinswg_appealcasetype == null) {
console.log(