Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: log page compatible old query (#1141)

Joele925b6c57230
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index 2c88c6f1594..2995b83f651 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -81,7 +81,7 @@ const getFormattedChatList = (messages: ChatMessage[]) => {
messages.forEach((item: ChatMessage) => {
newChatList.push({
id: `question-${item.id}`,
- content: item.inputs.query || item.query, // text generation: item.inputs.query; chat: item.query
+ content: item.inputs.query || item.inputs.default_input || item.query, // text generation: item.inputs.query; chat: item.query
isAnswer: false,
})
@@ -413,7 +413,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
<tbody className="text-gray-500">
{logs.data.map((log) => {
const endUser = log.from_end_user_session_id
- const leftValue = get(log, isChatMode ? 'summary' : 'message.inputs.query')
+ const leftValue = get(log, isChatMode ? 'summary' : 'message.inputs.query') || (!isChatMode ? (get(log, 'message.query') || get(log, 'message.inputs.default_input')) : '') || ''
const rightValue = get(log, isChatMode ? 'message_count' : 'message.answer')
return <tr
key={log.id}