From e3e43693580b7e4cfa3b40e252a8a259f770f9fe Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 25 Jul 2025 14:05:14 +0800 Subject: [PATCH] fix: webapp get boolean value --- web/app/components/base/chat/chat-with-history/hooks.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/app/components/base/chat/chat-with-history/hooks.tsx b/web/app/components/base/chat/chat-with-history/hooks.tsx index c932ee5f8f..23d42f37a7 100644 --- a/web/app/components/base/chat/chat-with-history/hooks.tsx +++ b/web/app/components/base/chat/chat-with-history/hooks.tsx @@ -207,6 +207,14 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => { type: 'number', } } + + if(item.boolean) { + return { + ...item.boolean, + default: false, + type: 'boolean', + } + } if (item.select) { const isInputInOptions = item.select.options.includes(initInputs[item.select.variable]) return {