File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
apps/OpenSign/src/components/pdf Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -310,11 +310,16 @@ function Placeholder(props) {
310
310
//when user click on copy icon of text widget in that condition text widget does not have any signerObjId
311
311
//in that case i have to save in tempSignerId as a unique id of previous select signer's unique id
312
312
//and on save or cancel button of copy all page popup i have set this temp signer Id in unique id
313
- if ( props . data && props . pos . type === textWidget ) {
313
+
314
+ if ( props . data && props ?. pos ?. type !== textWidget ) {
315
+ props . setSignerObjId ( props ?. data ?. signerObjId ) ;
316
+ props . setUniqueId ( props ?. data ?. Id ) ;
317
+ } else if ( props . data && props . pos . type === textWidget ) {
314
318
props . setTempSignerId ( props . uniqueId ) ;
319
+ props . setSignerObjId ( props ?. data ?. signerObjId ) ;
320
+ props . setUniqueId ( props ?. data ?. Id ) ;
315
321
}
316
- props . setSignerObjId ( props ?. data ?. signerObjId ) ;
317
- props . setUniqueId ( props ?. data ?. Id ) ;
322
+
318
323
//checking widget's type and open widget copy modal for required widgets
319
324
if (
320
325
[ "signature" , textWidget , "stamp" , "initial" ] . includes ( props . pos . type )
You can’t perform that action at this time.
0 commit comments