From 750d4ca8416683458a8b27dca37a417f9d2081d6 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 27 Apr 2026 16:04:02 +0800 Subject: [PATCH] fix(web): custom tool schema api add case Co-authored-by: Copilot --- web/src/views/ToolManagement/components/CustomToolModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/views/ToolManagement/components/CustomToolModal.tsx b/web/src/views/ToolManagement/components/CustomToolModal.tsx index cbcddb7c..08e18679 100644 --- a/web/src/views/ToolManagement/components/CustomToolModal.tsx +++ b/web/src/views/ToolManagement/components/CustomToolModal.tsx @@ -101,6 +101,7 @@ const CustomToolModal = forwardRef(({ }); }; const formatSchema = (value: string) => { + if (!value || value.trim() === '') return setParseSchemaData({} as ParseSchemaData) parseSchema({ schema_content: value }) .then(res => {