updating form to show case ref

This commit is contained in:
robert.bond@test.gov.wales
2021-09-14 07:58:27 +01:00
parent 84f75c9db8
commit 1208848d82
3 changed files with 68 additions and 26 deletions
+17 -6
View File
@@ -11,12 +11,22 @@ import { updateCase } from "../../actions";
let CompleteAppeal = (props) => {
// un comment to update incident with an appealtype id
// useEffect(() => {
// updateCase(
// props.appealType.caseReference.incidentid,
// props.appealType.appealTypeID
// );
// }, []);
useEffect(() => {
// updateCase(
// props.appealType.caseReference.incidentid,
// props.appealType.appealTypeID,
// props.form.appealform.values,
// pinswg_appealcasetype@OData.Community.Display.V1.Formatted
// );
console.log(props.appealType.caseReference.incidentid);
console.log(props.appealType.appealTypeID);
console.log(props.form);
console.log(
props.appealType.caseReference[
"pinswg_appealcasetype@OData.Community.Display.V1.Formatted"
]
);
}, []);
let { t } = useTranslation();
@@ -57,6 +67,7 @@ let CompleteAppeal = (props) => {
setCurrentSection(currentSection + 1);
};
console.log(JSON.stringify(props.props.form.appealForm.values, null, 2));
alert(JSON.stringify(props.props.form.appealForm.values, null, 2));
return (