mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: chat app sometimes may crash (#3151)
This commit is contained in:
parent
a9700e61db
commit
974828222e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user