Skip to content

Commit ec19a48

Browse files
committed
fix: make note title field optional for encrypted notes
1 parent 064785c commit ec19a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const reorderFolderSchema = z.object({
3535
});
3636

3737
export const createNoteSchema = z.object({
38-
title: z.string().min(1, "Note title is required").max(200),
38+
title: z.string().min(1).max(200).optional(),
3939
content: z.string().optional(),
4040
folderId: z.string().uuid().nullable().optional(),
4141
starred: z.boolean().optional(),

0 commit comments

Comments
 (0)