updating form to show case ref
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user