From 356cd271b2926ce3bf33029fdfcdef9bd27648cf Mon Sep 17 00:00:00 2001 From: wind <1348624126@qq.com> Date: Wed, 19 Feb 2025 17:32:54 +0800 Subject: [PATCH] fix: MessageLogModal closed unexpectedly (#13617) --- web/app/components/app/log/list.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx index 2862eebfa7..2e688bc381 100644 --- a/web/app/components/app/log/list.tsx +++ b/web/app/components/app/log/list.tsx @@ -635,9 +635,10 @@ const ConversationList: FC = ({ logs, appDetail, onRefresh }) const [currentConversation, setCurrentConversation] = useState() // Currently selected conversation const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app const isChatflow = appDetail.mode === 'advanced-chat' // Whether the app is a chatflow app - const { setShowPromptLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({ + const { setShowPromptLogModal, setShowAgentLogModal, setShowMessageLogModal } = useAppStore(useShallow(state => ({ setShowPromptLogModal: state.setShowPromptLogModal, setShowAgentLogModal: state.setShowAgentLogModal, + setShowMessageLogModal: state.setShowMessageLogModal, }))) // Annotated data needs to be highlighted @@ -664,6 +665,7 @@ const ConversationList: FC = ({ logs, appDetail, onRefresh }) setCurrentConversation(undefined) setShowPromptLogModal(false) setShowAgentLogModal(false) + setShowMessageLogModal(false) } if (!logs)