Compare commits

..
Author SHA1 Message Date
prafull-opensignlabs 3500883205 v2.21.2
fix: handle subscription error in publicsign
2025-05-21 07:37:15 +00:00
prafull-opensignlabsandGitHub 8f2433fbea Merge pull request #1737 from OpenSignLabs/updates-15043583319
v2.21.1
2025-05-15 16:48:53 +05:30
prafull-opensignlabs b671dbac19 v2.21.1
fix: handle undefined placeholders condition
2025-05-15 11:17:30 +00:00
prafull-opensignlabsandGitHub 79cdbc9c8c Merge pull request #1735 from OpenSignLabs/updates-15024699698
fix: resolve error cannot read undefined props
2025-05-14 20:55:08 +05:30
prafull-opensignlabs e585b7c943 fix: resolve error cannot read undefined props 2025-05-14 15:24:27 +00:00
prafull-opensignlabsandGitHub 5336e2cb7c Merge pull request #1734 from OpenSignLabs/prafull-opensignlabs-patch-7
refactor: remove unnecessary file
2025-05-14 20:26:36 +05:30
2 changed files with 14 additions and 32 deletions
+2 -2
View File
@@ -3081,9 +3081,9 @@ export const updateDateWidgetsRes = (documentData, signerId, journey) => {
if (item?.signerObjId === signerId) {
return {
...item,
placeHolder: item.placeHolder.map((ph) => ({
placeHolder: item?.placeHolder?.map((ph) => ({
...ph,
pos: ph.pos.map((widget) => {
pos: ph?.pos?.map((widget) => {
// only for date widgets *and* missing response
if (widget.type === "date" && !widget.options.response) {
return {
+12 -30
View File
@@ -264,7 +264,6 @@ function PdfRequestFiles(
docId,
isNextUser,
isSuccessPage = false,
publiccontactId
) => {
try {
let isUpdatedSubscribe;
@@ -274,7 +273,9 @@ function PdfRequestFiles(
const jsonSender = JSON.parse(senderUser);
const contactId = jsonSender?.objectId
? ""
: contactBookId || publiccontactId || signerObjectId || "";
: contactBookId ||
signerObjectId ||
"";
const tenantSignTypes = await fetchTenantDetails(contactId);
// `currUserId` will be contactId or extUserId
let currUserId;
@@ -322,7 +323,9 @@ function PdfRequestFiles(
currUserId = getCurrentSigner?.objectId
? getCurrentSigner.objectId
: contactBookId || publiccontactId || signerObjectId || ""; //signerObjectId is contactBookId refer from public template flow
: contactBookId ||
signerObjectId ||
""; //signerObjectId is contactBookId refer from public template flow
if (currUserId) {
setSignerObjectId(currUserId);
}
@@ -581,9 +584,12 @@ function PdfRequestFiles(
}
};
//function for embed signature or image url in pdf
async function embedWidgetsData(publiccontactId, publicDocId) {
let contactId = publiccontactId || signerObjectId;
let docId = publicDocId || documentId;
async function embedWidgetsData(
) {
let contactId =
signerObjectId;
let docId =
documentId;
const addExtraDays = pdfDetails[0]?.TimeToCompleteDays
? pdfDetails[0].TimeToCompleteDays
: 15;
@@ -1023,30 +1029,7 @@ function PdfRequestFiles(
}
const handleSignPdf = async () => {
if (props.templateId) {
const params = {
...contact,
templateid: pdfDetails[0]?.objectId,
role: pdfDetails[0]?.PublicRole[0]
};
const linkRes = await axios.post(
`${localStorage.getItem(
"baseUrl"
)}/functions/publicuserlinkcontacttodoc`,
params,
{
headers: {
"Content-Type": "application/json",
"X-Parse-Application-Id": localStorage.getItem("parseAppId")
}
}
);
const contactId = linkRes.data.result?.contactId;
const docId = linkRes.data?.result?.docId;
await embedWidgetsData(contactId, docId);
} else {
await embedWidgetsData();
}
};
//function for save x and y position and show signature tab on that position
const handleTabDrag = (key) => {
@@ -1161,7 +1144,6 @@ function PdfRequestFiles(
return obj;
});
setSignerPos(newUpdateSigner);
setFontSize();
setFontColor();
handleTextSettingModal(false);