瀏覽代碼

fix: MessageLogModal closed unexpectedly (#13617)

tags/1.0.0
wind 8 月之前
父節點
當前提交
356cd271b2
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      web/app/components/app/log/list.tsx

+ 3
- 1
web/app/components/app/log/list.tsx 查看文件

const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation
const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app 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 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, setShowPromptLogModal: state.setShowPromptLogModal,
setShowAgentLogModal: state.setShowAgentLogModal, setShowAgentLogModal: state.setShowAgentLogModal,
setShowMessageLogModal: state.setShowMessageLogModal,
}))) })))


// Annotated data needs to be highlighted // Annotated data needs to be highlighted
setCurrentConversation(undefined) setCurrentConversation(undefined)
setShowPromptLogModal(false) setShowPromptLogModal(false)
setShowAgentLogModal(false) setShowAgentLogModal(false)
setShowMessageLogModal(false)
} }


if (!logs) if (!logs)

Loading…
取消
儲存