From d8be82c6c0ce5cd6153ce3b20d87de2aa9950255 Mon Sep 17 00:00:00 2001 From: richersoon Date: Wed, 18 Dec 2024 14:17:23 +0800 Subject: [PATCH] fix: hide agent response for chatflow --- packages/ui/src/views/chatflows/ShareChatbot.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/views/chatflows/ShareChatbot.jsx b/packages/ui/src/views/chatflows/ShareChatbot.jsx index 7580b59581b..165673d9095 100644 --- a/packages/ui/src/views/chatflows/ShareChatbot.jsx +++ b/packages/ui/src/views/chatflows/ShareChatbot.jsx @@ -451,7 +451,7 @@ const ShareChatbot = ({ isSessionMemory, isAgentCanvas }) => { {colorField(backgroundColor, 'backgroundColor', 'Background Color')} {textField(fontSize, 'fontSize', 'Font Size', 'number')} {colorField(poweredByTextColor, 'poweredByTextColor', 'PoweredBy TextColor')} - {booleanField(showAgentMessages, 'showAgentMessages', 'Show Agent Reasoning')} + {isAgentCanvas && booleanField(showAgentMessages, 'showAgentMessages', 'Show Agent Reasoning')} {/*BOT Message*/}