Merge pull request #213 from raktima-opensignlabs/signer-login

fix:  no data found issue on signers login page
This commit is contained in:
Amol
2023-11-21 16:36:10 +05:30
committed by GitHub
3 changed files with 8 additions and 20 deletions
@@ -1033,7 +1033,7 @@ function PdfRequestFiles() {
<Modal.Body>
<p className="pTagBody">
This document has been signed by all Sigers.
This document has been signed by all Signers.
</p>
</Modal.Body>
@@ -231,24 +231,12 @@ function PlaceHolderSign() {
setHandleError("Error: Something went wrong!");
setIsLoading(loadObj);
} else if (res.length === 0) {
const res = await contactBook(jsonSender.objectId);
if (res[0] && res.length) {
setSignerUserId(res[0].objectId);
const tourstatus = res[0].TourStatus && res[0].TourStatus;
if (tourstatus && tourstatus.length > 0) {
setTourStatus(tourstatus);
const checkTourRecipients = tourstatus.filter(
(data) => data.placeholder
);
if (checkTourRecipients && checkTourRecipients.length > 0) {
setCheckTourStatus(checkTourRecipients[0].placeholder);
}
}
const loadObj = {
isLoad: false
};
setIsLoading(loadObj);
}
setNoData(true);
const loadObj = {
isLoad: false
};
setIsLoading(loadObj);
}
};
@@ -279,7 +279,7 @@ export const contactBook = async (objectId) => {
.get(
`${localStorage.getItem("baseUrl")}classes/${localStorage.getItem(
"_appName"
)}_Contactbook?where={"UserId": {"__type": "Pointer","className": "_User", "objectId":"${objectId}"}}`,
)}_Contactbook?where={"objectId":"${objectId}"}`,
{
headers: {
"Content-Type": "application/json",