From 0c4796b60fe94ea53953b81783c24f4b15cde5af Mon Sep 17 00:00:00 2001 From: ethangardner Date: Wed, 20 Nov 2024 11:27:09 -0500 Subject: [PATCH] remove additional attachments reference from documents --- packages/forms/src/documents/document.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/forms/src/documents/document.ts b/packages/forms/src/documents/document.ts index 90b02e6f..48b5fe08 100644 --- a/packages/forms/src/documents/document.ts +++ b/packages/forms/src/documents/document.ts @@ -128,20 +128,6 @@ export const addDocumentFieldsToForm = ( maxLength: 128, }, } satisfies InputPattern); - } else if (field.type === 'Attachment') { - patterns.push({ - type: 'attachment', - id: patternId, - data: { - label: field.label, - required: false, - maxAttachments: 1, - allowedFileTypes: attachmentFileTypeMimes as [ - (typeof attachmentFileTypeMimes)[number], - ], - maxFileSizeMB: 10, - }, - } satisfies AttachmentPattern); } else if (field.type === 'RadioGroup') { patterns.push({ type: 'input',