lpa portal view
This commit is contained in:
+14
-3
@@ -9,6 +9,7 @@ import {
|
||||
getAwaitingSubmissionFromBlob,
|
||||
getAwaitingSubmission,
|
||||
getMyCases,
|
||||
getLPACases,
|
||||
getMyRepresentations,
|
||||
getPersonalAccount,
|
||||
getPortalModuleDetails,
|
||||
@@ -185,15 +186,22 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
//Create Storage container for logged in user
|
||||
await createContainerProxy(thisSession.user.id);
|
||||
|
||||
const accountDetails = await getPersonalAccount(loggedInUser);
|
||||
|
||||
const lpaid = accountDetails(
|
||||
"pinswg_typeofinvolvement@OData.Community.Display.V1.FormattedValue"
|
||||
);
|
||||
|
||||
const [
|
||||
accountDetails,
|
||||
myCases,
|
||||
myRepresentations,
|
||||
watchedCases,
|
||||
awaitingSubmission,
|
||||
awaitingSubmissionFromBlob,
|
||||
] = await Promise.all([
|
||||
await getPersonalAccount(loggedInUser),
|
||||
accountDetails.pinswg_typeofinvolvment == 846040012
|
||||
? await getMyLPACases(lpaid)
|
||||
: await getMyCases(loggedinUser),
|
||||
await getMyCases(loggedInUser),
|
||||
await getRepsFromBlob(thisSession.user.id),
|
||||
await getWatchedCases(loggedInUser),
|
||||
@@ -375,7 +383,10 @@ const getDetails = (resultsObj, detailsType) => {
|
||||
);
|
||||
}
|
||||
});
|
||||
return Promise.all(detailsArr);
|
||||
|
||||
let detArr = Promise.all(detailsArr);
|
||||
console.log(detArr);
|
||||
return detArr;
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
|
||||
Reference in New Issue
Block a user