Skip to content

Commit

Permalink
Update ChatMessage.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryHengZJ authored Dec 4, 2024
1 parent 4c884ce commit 4db45b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/ui/src/views/chatmessage/ChatMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,6 @@ export const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, preview
const handleFileUploads = async (uploads) => {
if (!uploadedFiles.length) return uploads

console.log('uploadedFiles', uploadedFiles)

if (fullFileUpload) {
const filesWithFullUploadType = uploadedFiles.filter((file) => file.type === 'file:full')
if (filesWithFullUploadType.length > 0) {
Expand Down Expand Up @@ -796,8 +794,6 @@ export const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, preview
return
}

console.log('uploads', uploads)

clearPreviews()
setMessages((prevMessages) => [...prevMessages, { message: input, type: 'userMessage', fileUploads: uploads }])

Expand Down

0 comments on commit 4db45b5

Please sign in to comment.