From bf02cf4058e540a144b738872cc81e81a4f93d6b Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 16 Jan 2026 12:25:50 +0200 Subject: [PATCH] fix paste --- app/javascript/template_builder/builder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 2eb1d0a8..16ed503e 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -1553,7 +1553,7 @@ export default { const currentArea = this.selectedAreaRef.value const defaultAttachmentUuid = this.template.schema[0]?.attachment_uuid - if (field && currentArea) { + if (field && (currentArea || targetPosition)) { const attachmentUuid = targetPosition?.attachment_uuid || (this.template.documents.find((d) => d.uuid === currentArea.attachment_uuid) ? currentArea.attachment_uuid : null) || defaultAttachmentUuid