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: chat app sometimes may crash (#3151)

Joel974828222e81
diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx
index 381558922d1..4441bbc1aeb 100644
--- a/web/app/components/share/chat/index.tsx
+++ b/web/app/components/share/chat/index.tsx
@@ -557,7 +557,7 @@ const Main: FC<IMainProps> = ({
conversation_id: isNewConversation ? null : currConversationId,
}
- if (visionConfig.enabled && files && files?.length > 0) {
+ if (visionConfig?.enabled && files && files?.length > 0) {
data.files = files.map((item) => {
if (item.transfer_method === TransferMethod.local_file) {
return {