From ab814e3eacd4985419dffc956c1f90b61f075d8b Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 27 Oct 2025 14:08:32 +0800 Subject: [PATCH] fix: inputs overwrite by curr item --- web/app/components/base/chat/embedded-chatbot/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/chat/embedded-chatbot/hooks.tsx b/web/app/components/base/chat/embedded-chatbot/hooks.tsx index 9fde01e037..500860e740 100644 --- a/web/app/components/base/chat/embedded-chatbot/hooks.tsx +++ b/web/app/components/base/chat/embedded-chatbot/hooks.tsx @@ -328,7 +328,7 @@ export const useEmbeddedChatbot = (appSourceType: AppSourceType, tryAppId?: stri }, [appChatListData, currentConversationId]) const [currentConversationInputs, setCurrentConversationInputs] = useState>(currentConversationLatestInputs || {}) useEffect(() => { - if (currentConversationItem) + if (currentConversationItem && !isTryApp) setCurrentConversationInputs(currentConversationLatestInputs || {}) }, [currentConversationItem, currentConversationLatestInputs])