when click change linik values persisted
This commit is contained in:
@@ -23,6 +23,7 @@ let BuildCheckRow = (props) => {
|
||||
sectionCount,
|
||||
onSubmit,
|
||||
updateCurrentSection,
|
||||
setCurrentSection,
|
||||
mandatoryFieldsData,
|
||||
} = props;
|
||||
|
||||
@@ -161,20 +162,19 @@ let BuildCheckRow = (props) => {
|
||||
)
|
||||
: fieldtype[0].value ==
|
||||
"{16D63FD6-119B-4353-BDCA-18358721C3FE}"
|
||||
? (console.log(
|
||||
? console.log(
|
||||
props.props.form[
|
||||
"appealForm"
|
||||
].values[
|
||||
datafieldname[0].value
|
||||
]
|
||||
),
|
||||
(<div>sdfsd eeefsdfs</div>))
|
||||
)
|
||||
: fieldtype[0].value ==
|
||||
"{0273EDBD-AC1D-40d3-9FB2-095C621B552D}"
|
||||
? props.props.form[
|
||||
"appealForm"
|
||||
].values[
|
||||
datafieldname[0].value
|
||||
datafieldname[0].value[0]
|
||||
].map((tenant, index) => {
|
||||
return (
|
||||
<div
|
||||
@@ -211,7 +211,7 @@ let BuildCheckRow = (props) => {
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
updateCurrentSection(
|
||||
setCurrentSection(
|
||||
whichSection
|
||||
);
|
||||
}}
|
||||
@@ -248,6 +248,9 @@ let BuildCheckRow = (props) => {
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
setCurrentSection: (currentSection) => {
|
||||
dispatch(setCurrentSection(currentSection));
|
||||
},
|
||||
updateCurrentSection: (whichSection) => {
|
||||
dispatch(setCurrentSection(whichSection));
|
||||
dispatch(setFormComplete("true"));
|
||||
|
||||
Reference in New Issue
Block a user