Skip to content

Commit

Permalink
fix: [Chat] Fixed the problem that the file attachment URL error in t…
Browse files Browse the repository at this point in the history
…he dialog box (#2589)
  • Loading branch information
YyumeiZhang authored Nov 25, 2024
1 parent d98ab62 commit 7259dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semi-ui/chat/chatBox/chatBoxContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ChatBoxContent = (props: ChatBoxContentProps) => {
} else if (item.type === 'file_url') {
const { name, size, url, type } = item.file_url;
const realType = name.split('.').pop() ?? type?.split('/').pop();
return <FileAttachment key={`index`} url={name} name={name} size={size} type={realType}></FileAttachment>;
return <FileAttachment key={`index`} url={url} name={name} size={size} type={realType}></FileAttachment>;
}
return null;
});
Expand Down

0 comments on commit 7259dc8

Please sign in to comment.