pull/572/head
Pete Matsyburka 2 months ago
parent 5212773d0a
commit bf02cf4058

@ -1553,7 +1553,7 @@ export default {
const currentArea = this.selectedAreaRef.value const currentArea = this.selectedAreaRef.value
const defaultAttachmentUuid = this.template.schema[0]?.attachment_uuid const defaultAttachmentUuid = this.template.schema[0]?.attachment_uuid
if (field && currentArea) { if (field && (currentArea || targetPosition)) {
const attachmentUuid = targetPosition?.attachment_uuid || const attachmentUuid = targetPosition?.attachment_uuid ||
(this.template.documents.find((d) => d.uuid === currentArea.attachment_uuid) ? currentArea.attachment_uuid : null) || (this.template.documents.find((d) => d.uuid === currentArea.attachment_uuid) ? currentArea.attachment_uuid : null) ||
defaultAttachmentUuid defaultAttachmentUuid

Loading…
Cancel
Save