Skip to content

Commit 356cd27

Browse files
authored
fix: MessageLogModal closed unexpectedly (#13617)
1 parent baf7561 commit 356cd27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/app/components/app/log/list.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,10 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
635635
const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation
636636
const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app
637637
const isChatflow = appDetail.mode === 'advanced-chat' // Whether the app is a chatflow app
638-
const { setShowPromptLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({
638+
const { setShowPromptLogModal, setShowAgentLogModal, setShowMessageLogModal } = useAppStore(useShallow(state => ({
639639
setShowPromptLogModal: state.setShowPromptLogModal,
640640
setShowAgentLogModal: state.setShowAgentLogModal,
641+
setShowMessageLogModal: state.setShowMessageLogModal,
641642
})))
642643

643644
// Annotated data needs to be highlighted
@@ -664,6 +665,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
664665
setCurrentConversation(undefined)
665666
setShowPromptLogModal(false)
666667
setShowAgentLogModal(false)
668+
setShowMessageLogModal(false)
667669
}
668670

669671
if (!logs)

0 commit comments

Comments
 (0)