File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,18 +136,17 @@ export default {
136136 this .pdfBlob = new File ([blob], ' arquivo.pdf' , { type: ' application/pdf' })
137137 },
138138 updateSigners (data ) {
139- this .signStore .document .signers .forEach (signer => {
140- if (signer .visibleElements .length > 0 ) {
141- signer .visibleElements .forEach (element => {
142- const object = structuredClone (signer)
143- object .readOnly = true
144- element .coordinates .ury = Math .round (data .measurement [element .coordinates .page ].height )
145- - element .coordinates .ury
146- object .element = element
147- this .$refs .pdfEditor .addSigner (object)
148- })
149- }
150- })
139+ const currentSigner = this .signStore .document .signers .find (signer => signer .me )
140+ if (currentSigner && currentSigner .visibleElements .length > 0 ) {
141+ currentSigner .visibleElements .forEach (element => {
142+ const object = structuredClone (currentSigner)
143+ object .readOnly = true
144+ element .coordinates .ury = Math .round (data .measurement [element .coordinates .page ].height )
145+ - element .coordinates .ury
146+ object .element = element
147+ this .$refs .pdfEditor .addSigner (object)
148+ })
149+ }
151150 this .signStore .mounted = true
152151 },
153152 toggleSidebar () {
You can’t perform that action at this time.
0 commit comments