From cd3bb0ed7c1db328ae8ba69b33c4e73886de7197 Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 8 Aug 2025 16:44:08 +0800 Subject: [PATCH] Feat: Set the description of the agent, which can be null #3221 (#9327) ### What problem does this PR solve? Feat: Set the description of the agent, which can be null #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/pages/agent/setting-dialog/setting-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/agent/setting-dialog/setting-form.tsx b/web/src/pages/agent/setting-dialog/setting-form.tsx index d4fe0c07b..e39ad2416 100644 --- a/web/src/pages/agent/setting-dialog/setting-form.tsx +++ b/web/src/pages/agent/setting-dialog/setting-form.tsx @@ -26,8 +26,8 @@ import { useForm } from 'react-hook-form'; const formSchema = z.object({ title: z.string().min(1, {}), - avatar: z.array(z.custom()), - description: z.string(), + avatar: z.array(z.custom()).optional().nullable(), + description: z.string().optional().nullable(), permission: z.string(), });