mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
deduplicate submitter uuids
This commit is contained in:
1 parent
5ea6289b7a
commit
c95a8616ac
1 file changed
+10
@@ -1097,6 +1097,16 @@ export default {
|
||||
}
|
||||
})
|
||||
|
||||
const deduplicateUuidsIndex = {}
|
||||
|
||||
this.template.submitters.forEach((submitter) => {
|
||||
if (deduplicateUuidsIndex[submitter.uuid]) {
|
||||
submitter.uuid = v4()
|
||||
}
|
||||
|
||||
deduplicateUuidsIndex[submitter.uuid] = true
|
||||
})
|
||||
|
||||
this.selectedSubmitter = this.template.submitters[0]
|
||||
},
|
||||
mounted () {
|
||||
|
||||
Reference in new issue
Block a user