Skip to content

Commit

Permalink
remove additional attachments reference from documents
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Nov 20, 2024
1 parent e54a0f0 commit 0c4796b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/forms/src/documents/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 0c4796b

Please sign in to comment.