fixed call for watched cases double apostrophe fix

This commit is contained in:
2024-03-19 10:52:31 +00:00
parent 7d37babfff
commit 20226bab8d
2 changed files with 25 additions and 24 deletions
+24 -23
View File
@@ -438,7 +438,7 @@ export const getSearchDocumentDetails = (incidentID) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -449,7 +449,7 @@ export const getSearchDocumentTypes = (incidentID) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -479,7 +479,7 @@ export const getSearchDocumentDetailsPaged = (
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -494,7 +494,7 @@ export const getLinkedCases = (parentIncidentid) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -555,7 +555,7 @@ export const getFormData = (whichForm) => {
.get(BASE_URL + "/api/endpoint/getformdata_api?whichForm=" + whichForm)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -568,7 +568,7 @@ export const getMandatoryFields = (whichForm) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -577,7 +577,7 @@ export const getPickLists = (whichForm) => {
.get(BASE_URL + "/api/endpoint/getpicklists_api?whichForm=" + whichForm)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -648,7 +648,7 @@ export const getLogin = (emailAddress, pwd) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -663,7 +663,7 @@ export const getMyCases = (loggedInUserId) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -674,7 +674,7 @@ export const getMyLPACases = (lpaid) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -760,7 +760,7 @@ export const getAwaitingSubmissionProxy = (loggedInUserId) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -775,7 +775,7 @@ export const getAwaitingSubmission = (loggedInUserId) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -799,7 +799,7 @@ export const getAwaitingSubmissionFromBlob = (containerName) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -849,7 +849,7 @@ export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -871,7 +871,7 @@ export const getPortalModuleDetails = (appealType, caseReference) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -881,11 +881,11 @@ export const getPortalModuleDetailsProxy = (appealType, caseReference) => {
"/api/endpoint/getportalmoduledetailsproxy_api?appealType=" +
appealType +
"&caseReference=" +
caseReference
caseReference.replace(/\'/g, "''")
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -897,7 +897,7 @@ export const getEmailAccountCheck = (emailAddress) => {
)
.then((res) => res.data)
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -940,7 +940,8 @@ export const updateAccount = async (contactId, updateBody) => {
export const createWatchedCases = (formValues) => {
var data = formValues;
var queryUrl = window.apiRoot + "/api/endpoint/createwatchedcases_api";
//var queryUrl = window.apiRoot + "/api/endpoint/createwatchedcases_api";
var queryUrl = "/api/endpoint/createwatchedcases_api";
var config = {
method: "post",
@@ -1080,7 +1081,7 @@ export const updateCase = async (
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -1118,7 +1119,7 @@ export const updateCaseBlob = async (
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -1688,7 +1689,7 @@ export const sendCaseCompleteMessageProxy = async (
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
@@ -1711,6 +1712,6 @@ export const sendRepCompleteMessage = async (containerID, caseReference) => {
return res.data;
})
.catch((error) => {
//console.log("API call error", error);
consoleLogger(error);
});
};
+1 -1
View File
@@ -134,7 +134,7 @@ const SearchResults = (props) => {
};
const getDetails = (resultsObj, detailsType) => {
console.log(resultsObj);
// console.log(resultsObj);
let detailsArr = [];
resultsObj = resultsObj.value;
const detailsObj = resultsObj.map((searchDetail, index) => {