diff --git a/app/routes/users/$username/notes/+shared/note-editor.tsx b/app/routes/users/$username/notes/+shared/note-editor.tsx index 62b587a..a3f8ccd 100644 --- a/app/routes/users/$username/notes/+shared/note-editor.tsx +++ b/app/routes/users/$username/notes/+shared/note-editor.tsx @@ -45,7 +45,7 @@ export type ImageFieldset = z.infer export const NoteEditorSchema = z.object({ id: z.string().optional(), - title: z.string().min(titleMinLength).max(titleMaxLength), + title: z.string().trim().min(titleMinLength).max(titleMaxLength), content: z.string().min(contentMinLength).max(contentMaxLength), images: z.array(ImageFieldsetSchema).max(5).optional(), })