fix: should not hide empty message away (#1116)

This commit is contained in:
Louis 2023-12-20 15:53:27 +07:00 committed by GitHub
parent 88fc0715b2
commit 5a0cec931e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,11 +117,8 @@ const ChatBody: React.FC = () => {
<ScrollToBottom className="flex h-full w-full flex-col">
{messages.map((message, index) => (
<>
{message.content.length ? (
<ChatItem {...message} key={message.id} />
) : (
<></>
)}
{message.status === MessageStatus.Error &&
index === messages.length - 1 && (
<div