EIA requried fields updating
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
getIP,
|
||||
getLPA,
|
||||
getPersonalAccount,
|
||||
getProjectTypes,
|
||||
} from "../../actions";
|
||||
import Breadcrumbs from "../../components/breadcrumbs";
|
||||
import CookieBanner from "../../components/cookieBanner";
|
||||
@@ -22,7 +23,7 @@ import {
|
||||
setContainerID,
|
||||
setLoggedInUserId,
|
||||
} from "../../store/accountDetails/action";
|
||||
import { setAppealType } from "../../store/appealType/action";
|
||||
import { setAppealType, setProjectType } from "../../store/appealType/action";
|
||||
import { setLPA } from "../../store/lpa/action";
|
||||
import { wrapper } from "../../store/store";
|
||||
import ServiceBanner from "../../components/myportal/servicebanner";
|
||||
@@ -61,6 +62,7 @@ const Home = (props) => {
|
||||
lpadata={props.LPAData}
|
||||
appealType={props.appealType}
|
||||
myportal={true}
|
||||
props={props}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
@@ -93,19 +95,20 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
},
|
||||
};
|
||||
} else {
|
||||
const [accountDetails, appealTypeData, lpaData] = await Promise.all(
|
||||
[
|
||||
const [accountDetails, appealTypeData, lpaData, projectTypeData] =
|
||||
await Promise.all([
|
||||
await getPersonalAccount(loggedInUser),
|
||||
await getAppealsTypes(),
|
||||
await getLPA(),
|
||||
]
|
||||
);
|
||||
await getProjectTypes(),
|
||||
]);
|
||||
|
||||
//const lpaData = require("../../data/lpa.json");
|
||||
//const appealTypeData = require("../../data/appealtypes.json");
|
||||
|
||||
store.dispatch(setAccountDetails(accountDetails));
|
||||
store.dispatch(setAppealType(appealTypeData));
|
||||
store.dispatch(setProjectType(projectTypeData));
|
||||
store.dispatch(setLPA(lpaData));
|
||||
store.dispatch(setLoggedInUserId(loggedInUser));
|
||||
|
||||
@@ -128,7 +131,7 @@ const mapStateToProps = (state) => {
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
LPAData: state.LPAData,
|
||||
//form: state.form,
|
||||
form: state.form,
|
||||
accountDetails: state.accountDetails,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user