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: value.join is not a function in log list (#1332)

crazywoolae83e239faf06
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index 381cbf03a69..5bbe4055b29 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -181,14 +181,15 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
const getParamValue = (param: string) => {
const value = detail?.model_config.model?.completion_params?.[param] || '-'
if (param === 'stop') {
- if (!value || value.length === 0)
+ if (Array.isArray(value))
+ return value.join(',')
+ else
return '-'
-
- return value.join(',')
}
return value
}
+
return (<div className='rounded-xl border-[0.5px] border-gray-200 h-full flex flex-col overflow-auto'>
{/* Panel Header */}
<div className='border-b border-gray-100 py-4 px-6 flex items-center justify-between'>