uat defect 124, rep defect 11, questionnaire defect 26
This commit is contained in:
@@ -352,23 +352,24 @@ let RepLPA = (props) => {
|
||||
}
|
||||
hint={"sdsd"}
|
||||
fileList={
|
||||
(props.formObj.hasOwnProperty(
|
||||
"representationForm"
|
||||
) &&
|
||||
props.formObj[
|
||||
"representationForm"
|
||||
].hasOwnProperty(
|
||||
"values"
|
||||
) &&
|
||||
props.formObj[
|
||||
"representationForm"
|
||||
].values.hasOwnProperty(
|
||||
"filesList"
|
||||
) &&
|
||||
props.props.props.form[
|
||||
"representationForm"
|
||||
].values.filesList) ||
|
||||
[]
|
||||
props.currentView.fileList
|
||||
// (props.formObj.hasOwnProperty(
|
||||
// "representationForm"
|
||||
// ) &&
|
||||
// props.formObj[
|
||||
// "representationForm"
|
||||
// ].hasOwnProperty(
|
||||
// "values"
|
||||
// ) &&
|
||||
// props.formObj[
|
||||
// "representationForm"
|
||||
// ].values.hasOwnProperty(
|
||||
// "filesList"
|
||||
// ) &&
|
||||
// props.props.props.form[
|
||||
// "representationForm"
|
||||
// ].values.filesList) ||
|
||||
// []
|
||||
}
|
||||
setFilesForRepresentations={
|
||||
setFilesForRepresentations
|
||||
@@ -505,6 +506,22 @@ let RepLPA = (props) => {
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
onClick={() => {
|
||||
let valuesObj =
|
||||
props.props.props.form[props.form]
|
||||
.values || {};
|
||||
|
||||
console.log("valuesobj:", valuesObj);
|
||||
|
||||
delete valuesObj[
|
||||
"_pinswg_appellant_value"
|
||||
];
|
||||
|
||||
console.log("on save:", valuesObj);
|
||||
updateRepresentation(
|
||||
valuesObj,
|
||||
false,
|
||||
false
|
||||
);
|
||||
setRepresentationSubmit(true);
|
||||
}}
|
||||
>
|
||||
@@ -604,7 +621,7 @@ const mapStateToProps = (state, props) => {
|
||||
? state.currentView.caseReference.repDetails
|
||||
: state.currentView.caseReference,
|
||||
{
|
||||
"representationCapacity": "lpa",
|
||||
"representationCapacity": "LPA",
|
||||
"onBehalfOfLPA":
|
||||
props.props.props.accountDetails.accountDetails[
|
||||
"pinswg_contact_associatedlpa@OData.Community.Display.V1.FormattedValue"
|
||||
|
||||
Reference in New Issue
Block a user