updated to allow new appeals to work post ph merge
This commit is contained in:
@@ -364,7 +364,7 @@ let Home = (props) => {
|
||||
const selectedObj = jsonpath({
|
||||
path: "$..[?(@ && @.attributevalue=='" + apt + "')]",
|
||||
json: optionsStr,
|
||||
eval: true,
|
||||
eval: true
|
||||
});
|
||||
|
||||
const title = selectedObj?.[0]?.value;
|
||||
@@ -389,6 +389,7 @@ let Home = (props) => {
|
||||
formTitle={formTitle}
|
||||
mandatoryFieldsData={props.formData?.mandatoryFieldsData}
|
||||
propsForChildren={props}
|
||||
docsOffline={props.docsOffline}
|
||||
/>
|
||||
</NewAppealPageShell>
|
||||
);
|
||||
@@ -406,7 +407,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
hydrateNewAppealStore(store, ctx.query, result);
|
||||
|
||||
return {
|
||||
props: { url: process.env.NEXTAUTH_URL },
|
||||
props: {
|
||||
url: process.env.NEXTAUTH_URL,
|
||||
docsOffline: process.env.DOCAPI_OFFLINE || false
|
||||
}
|
||||
};
|
||||
}
|
||||
);
|
||||
@@ -418,7 +422,7 @@ const mapStateToProps = (state) => {
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
form: state.form,
|
||||
accountDetails: state.accountDetails,
|
||||
accountDetails: state.accountDetails
|
||||
};
|
||||
};
|
||||
|
||||
@@ -430,7 +434,7 @@ const mapDispatchToProps = (dispatch) => {
|
||||
},
|
||||
setCaseReference: (refno) => {
|
||||
// dispatch(setCaseReferenceAction(refno)); // optional later
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user