mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix multiple area fields draw
This commit is contained in:
1 parent
7d0f32e1f9
commit
a478112b07
2 files changed
+11
-2
No files matched your search
@@ -419,7 +419,7 @@ export default {
|
||||
this.template.documents.forEach((attachment) => {
|
||||
attachment.preview_images.forEach((page) => {
|
||||
if (!field.areas.find((area) => area.attachment_uuid === attachment.uuid && area.page === parseInt(page.filename))) {
|
||||
field.areas.push({ ...JSON.parse(areaString), page: parseInt(page.filename) })
|
||||
field.areas.push({ ...JSON.parse(areaString), attachment_uuid: attachment.uuid, page: parseInt(page.filename) })
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user