fixed some build issues stopping deployment
This commit is contained in:
@@ -76,7 +76,6 @@ let BuildCheckSection = (props) => {
|
|||||||
props={props}
|
props={props}
|
||||||
key={key}
|
key={key}
|
||||||
mandatoryFieldsData={mandatoryFieldsData}
|
mandatoryFieldsData={mandatoryFieldsData}
|
||||||
props={props}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -15,22 +15,6 @@ import data from "../../data/collections.json";
|
|||||||
let CompleteAppeal = (props) => {
|
let CompleteAppeal = (props) => {
|
||||||
// un comment to update incident with an appealtype id
|
// un comment to update incident with an appealtype id
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// console.log(props.appealType.caseReference.incidentid);
|
|
||||||
// console.log(props.appealType.appealTypeID);
|
|
||||||
// console.log(props.props.form.appealForm.values);
|
|
||||||
|
|
||||||
// console.log(updateBody);
|
|
||||||
// console.log(
|
|
||||||
// getFormCollection(
|
|
||||||
// "pinswg_" +
|
|
||||||
// props.appealType.caseReference[
|
|
||||||
// "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
|
||||||
// ]
|
|
||||||
// .replace(/[\s\-\+\(\)\,\&\.]/g, "")
|
|
||||||
// .toLowerCase()
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
|
|
||||||
let incidentId = props.appealType.caseReference.incidentid;
|
let incidentId = props.appealType.caseReference.incidentid;
|
||||||
let updateBody = props.props.form.appealForm.values;
|
let updateBody = props.props.form.appealForm.values;
|
||||||
|
|
||||||
@@ -52,7 +36,7 @@ let CompleteAppeal = (props) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
updateCase(incidentId, updateBody, updateFormCollection);
|
updateCase(incidentId, updateBody, updateFormCollection);
|
||||||
}, []);
|
}, [props.appealType.caseReference, props.props.form.appealForm.values]);
|
||||||
|
|
||||||
const getFormCollection = (formtype) => {
|
const getFormCollection = (formtype) => {
|
||||||
const collectionName = jsonpath.query(
|
const collectionName = jsonpath.query(
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const getSASToken = () => {
|
|||||||
return token;
|
return token;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function (req, res) {
|
export default async function ApiProxy(req, res) {
|
||||||
// console.log(req.method);
|
// console.log(req.method);
|
||||||
|
|
||||||
var updateBody = {
|
var updateBody = {
|
||||||
|
|||||||
Reference in New Issue
Block a user