mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-22 23:52:30 +02:00
fix no data found on signers login page
This commit is contained in:
@@ -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,7 +231,7 @@ function PlaceHolderSign() {
|
||||
setHandleError("Error: Something went wrong!");
|
||||
setIsLoading(loadObj);
|
||||
} else if (res.length === 0) {
|
||||
const res = await contactBook(jsonSender.objectId);
|
||||
const res = await contactBook(jsonSender.objectId, true);
|
||||
if (res[0] && res.length) {
|
||||
setSignerUserId(res[0].objectId);
|
||||
const tourstatus = res[0].TourStatus && res[0].TourStatus;
|
||||
|
||||
@@ -274,12 +274,15 @@ export const contractUsers = async (email) => {
|
||||
};
|
||||
|
||||
//function for getting contracts_contactbook details
|
||||
export const contactBook = async (objectId) => {
|
||||
export const contactBook = async (objectId, isUser) => {
|
||||
const condition = isUser
|
||||
? `{"UserId": {"__type": "Pointer","className": "_User", "objectId":"${objectId}"}}`
|
||||
: `{"objectId":"${objectId}"}`;
|
||||
const result = await axios
|
||||
.get(
|
||||
`${localStorage.getItem("baseUrl")}classes/${localStorage.getItem(
|
||||
"_appName"
|
||||
)}_Contactbook?where={"UserId": {"__type": "Pointer","className": "_User", "objectId":"${objectId}"}}`,
|
||||
)}_Contactbook?where=${condition}`,
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user