added fixes to reduce error when calling module details and filtering of docs

This commit is contained in:
2024-11-06 17:34:30 +00:00
parent cd918ef69c
commit d187907802
18 changed files with 1277 additions and 269 deletions
+5 -3
View File
@@ -474,7 +474,7 @@ export const getAdvancedSearchPaged = (
});
};
export const getBasicSearchDetails = (
export const getBasicSearchDetails = async (
appealTypeName,
caseReference,
primaryIdAttribute,
@@ -528,7 +528,7 @@ export const getBasicPartSavedDetails = (
});
};
export const getBasicSearchDetailsPaged = (
export const getBasicSearchDetailsPaged = async (
appealTypeName,
caseReference,
primaryIdAttribute,
@@ -1015,7 +1015,7 @@ export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
});
};
export const getPortalModuleDetails = (appealType, caseReference) => {
export const getPortalModuleDetails = async (appealType, caseReference) => {
//console.log(
// BASE_URL +
// "/api/endpoint/getportalmoduledetails_api?appealType=" +
@@ -1023,6 +1023,7 @@ export const getPortalModuleDetails = (appealType, caseReference) => {
// "&caseReference=" +
// encodeURI(caseReference)
// );
return axios
.get(
BASE_URL +
@@ -1033,6 +1034,7 @@ export const getPortalModuleDetails = (appealType, caseReference) => {
)
.then((res) => res.data)
.catch((error) => {
console.log("error case ref:", caseReference);
consoleLogger(error);
});
};