diff --git a/src/store/files.js b/src/store/files.js index fa5e41d628..b900382f68 100644 --- a/src/store/files.js +++ b/src/store/files.js @@ -152,6 +152,7 @@ export const useFilesStore = function(...args) { }) }, async hydrateFile(nodeId) { + this.addUniqueIdentifierToAllSigners(this.files[nodeId].signers) if (Object.hasOwn(this.files[nodeId], 'uuid')) { return } @@ -173,6 +174,9 @@ export const useFilesStore = function(...args) { signers.map(signer => this.addIdentifierToSigner(signer)) }, addIdentifierToSigner(signer) { + if (signer.identify) { + return + } // generate unique code to new signer to be possible delete or edit if ((signer.identify === undefined || signer.identify === '') && signer.signRequestId === undefined) { signer.identify = btoa(String.fromCharCode(...new TextEncoder().encode(JSON.stringify(signer))))