optimize for large files

This commit is contained in:
DocuSeal committed 2023-10-22 22:33:54 +03:00
1 parent c639a3f733
commit ce39494f84
19 files changed
+206 -32

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ export default {
emits: ['scroll-to', 'change', 'remove', 'up', 'down', 'replace'],
computed: {
previewImage () {
return this.document.preview_images[0]
return [...this.document.preview_images].sort((a, b) => parseInt(a.filename) - parseInt(b.filename))[0]
}
},
mounted () {