mirror of
https://github.com/outline/outline.git
synced 2026-04-27 05:04:38 -05:00
fix: Add default value for attachment preset for easier API use
This commit is contained in:
@@ -18,7 +18,9 @@ export const AttachmentsCreateSchema = BaseSchema.extend({
|
||||
contentType: z.string().optional().default("application/octet-stream"),
|
||||
|
||||
/** Attachment type */
|
||||
preset: z.nativeEnum(AttachmentPreset),
|
||||
preset: z
|
||||
.nativeEnum(AttachmentPreset)
|
||||
.default(AttachmentPreset.DocumentAttachment),
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user