fix paste

This commit is contained in:
Pete Matsyburka
2026-01-16 12:25:50 +02:00
parent 5212773d0a
commit bf02cf4058
+1 -1
View File
@@ -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