From 57603cc5241811422eced68a85f777268d38ef63 Mon Sep 17 00:00:00 2001 From: Parker Date: Sat, 6 Apr 2024 15:19:02 -0700 Subject: [PATCH] User notes field optional --- app/routes/admin+/_users+/users.edit.$userId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/admin+/_users+/users.edit.$userId.tsx b/app/routes/admin+/_users+/users.edit.$userId.tsx index d98b5a1..c5a13fa 100644 --- a/app/routes/admin+/_users+/users.edit.$userId.tsx +++ b/app/routes/admin+/_users+/users.edit.$userId.tsx @@ -59,7 +59,7 @@ const editUserSchema = z.object({ isInstructor: checkboxSchema(), isLessonAssistant: checkboxSchema(), isHorseLeader: checkboxSchema(), - notes: z.string(), + notes: z.string().optional(), }) export const loader = async ({ request, params }: DataFunctionArgs) => {