File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -411,10 +411,10 @@ function PdfRequestFiles() {
411
411
if ( emailExist ) {
412
412
placeholdersOrSigners . push ( placeholder ) ;
413
413
} else {
414
- const getSignerData = documentData [ 0 ] . Signers . filter (
414
+ const getSignerData = documentData [ 0 ] . Signers . find (
415
415
( data ) => data . objectId === placeholder ?. signerObjId
416
416
) ;
417
- placeholdersOrSigners . push ( getSignerData [ 0 ] ) ;
417
+ placeholdersOrSigners . push ( getSignerData ) ;
418
418
}
419
419
}
420
420
//condition to check already signed document by someone
@@ -798,8 +798,9 @@ function PdfRequestFiles() {
798
798
const usermail = {
799
799
Email : pdfDetails ?. [ 0 ] ?. Placeholders [ newIndex ] ?. email || ""
800
800
} ;
801
- const user =
802
- usermail ?. Email || pdfDetails ?. [ 0 ] ?. Signers [ newIndex ] ;
801
+ const user = usermail ?. Email
802
+ ? usermail
803
+ : pdfDetails ?. [ 0 ] ?. Signers [ newIndex ] ;
803
804
if ( sendmail !== "false" && sendInOrder ) {
804
805
const requestBody = pdfDetails ?. [ 0 ] ?. RequestBody ;
805
806
const requestSubject = pdfDetails ?. [ 0 ] ?. RequestSubject ;
You can’t perform that action at this time.
0 commit comments