diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 381558922d..4441bbc1ae 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -557,7 +557,7 @@ const Main: FC = ({ 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 {