File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
apps/OpenSign/src/components/pdf Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -331,21 +331,16 @@ function Placeholder(props) {
331
331
//condition for only placeholder and template flow
332
332
if ( props . data && props ?. pos ?. type !== textWidget ) {
333
333
props . setUniqueId ( props ?. data ?. Id ) ;
334
- const checkIndex = props . xyPostion . findIndex (
335
- ( data ) => data . Id === props . data . Id
336
- ) ;
337
-
334
+ const checkIndex = props . xyPostion
335
+ . filter ( ( data ) => data . Role !== "prefill" )
336
+ . findIndex ( ( data ) => data . Id === props . data . Id ) ;
338
337
props . setIsSelectId ( checkIndex || 0 ) ;
339
338
}
340
339
//condition to handle in placeholder and template flow for text widget signerId for text widgets i have to set uniqueId in tempSignerId because
341
340
//it does not have any signer user and any signerobjId
342
341
else if ( props . data && props . pos . type === textWidget ) {
343
342
props . setTempSignerId ( props . uniqueId ) ;
344
343
props . setUniqueId ( props ?. data ?. Id ) ;
345
- const checkIndex = props . xyPostion . findIndex (
346
- ( data ) => data . Id === props . data . Id
347
- ) ;
348
- props . setIsSelectId ( checkIndex || 0 ) ;
349
344
}
350
345
props . setSignKey ( props . pos . key ) ;
351
346
props . setWidgetType ( props . pos . type ) ;
You can’t perform that action at this time.
0 commit comments