remove contracts_contactbook class query from placeholderSign.js

This commit is contained in:
RaktimaNXG
2023-11-21 14:14:01 +05:30
parent 2a55c03788
commit f7bd439df5
2 changed files with 8 additions and 23 deletions
@@ -231,24 +231,12 @@ function PlaceHolderSign() {
setHandleError("Error: Something went wrong!");
setIsLoading(loadObj);
} else if (res.length === 0) {
const res = await contactBook(jsonSender.objectId, true);
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);
}
};