@@ -264,7 +264,6 @@ function PdfRequestFiles(
264
264
docId ,
265
265
isNextUser ,
266
266
isSuccessPage = false ,
267
- publiccontactId
268
267
) => {
269
268
try {
270
269
let isUpdatedSubscribe ;
@@ -274,7 +273,9 @@ function PdfRequestFiles(
274
273
const jsonSender = JSON . parse ( senderUser ) ;
275
274
const contactId = jsonSender ?. objectId
276
275
? ""
277
- : contactBookId || publiccontactId || signerObjectId || "" ;
276
+ : contactBookId ||
277
+ signerObjectId ||
278
+ "" ;
278
279
const tenantSignTypes = await fetchTenantDetails ( contactId ) ;
279
280
// `currUserId` will be contactId or extUserId
280
281
let currUserId ;
@@ -322,7 +323,9 @@ function PdfRequestFiles(
322
323
323
324
currUserId = getCurrentSigner ?. objectId
324
325
? getCurrentSigner . objectId
325
- : contactBookId || publiccontactId || signerObjectId || "" ; //signerObjectId is contactBookId refer from public template flow
326
+ : contactBookId ||
327
+ signerObjectId ||
328
+ "" ; //signerObjectId is contactBookId refer from public template flow
326
329
if ( currUserId ) {
327
330
setSignerObjectId ( currUserId ) ;
328
331
}
@@ -581,9 +584,12 @@ function PdfRequestFiles(
581
584
}
582
585
} ;
583
586
//function for embed signature or image url in pdf
584
- async function embedWidgetsData ( publiccontactId , publicDocId ) {
585
- let contactId = publiccontactId || signerObjectId ;
586
- let docId = publicDocId || documentId ;
587
+ async function embedWidgetsData (
588
+ ) {
589
+ let contactId =
590
+ signerObjectId ;
591
+ let docId =
592
+ documentId ;
587
593
const addExtraDays = pdfDetails [ 0 ] ?. TimeToCompleteDays
588
594
? pdfDetails [ 0 ] . TimeToCompleteDays
589
595
: 15 ;
@@ -1023,30 +1029,7 @@ function PdfRequestFiles(
1023
1029
}
1024
1030
1025
1031
const handleSignPdf = async ( ) => {
1026
- if ( props . templateId ) {
1027
- const params = {
1028
- ...contact ,
1029
- templateid : pdfDetails [ 0 ] ?. objectId ,
1030
- role : pdfDetails [ 0 ] ?. PublicRole [ 0 ]
1031
- } ;
1032
- const linkRes = await axios . post (
1033
- `${ localStorage . getItem (
1034
- "baseUrl"
1035
- ) } /functions/publicuserlinkcontacttodoc`,
1036
- params ,
1037
- {
1038
- headers : {
1039
- "Content-Type" : "application/json" ,
1040
- "X-Parse-Application-Id" : localStorage . getItem ( "parseAppId" )
1041
- }
1042
- }
1043
- ) ;
1044
- const contactId = linkRes . data . result ?. contactId ;
1045
- const docId = linkRes . data ?. result ?. docId ;
1046
- await embedWidgetsData ( contactId , docId ) ;
1047
- } else {
1048
1032
await embedWidgetsData ( ) ;
1049
- }
1050
1033
} ;
1051
1034
//function for save x and y position and show signature tab on that position
1052
1035
const handleTabDrag = ( key ) => {
0 commit comments