mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
loading icon fix
This commit is contained in:
parent
4e18dd4ac3
commit
b9dba7d08b
1 changed files with 1 additions and 4 deletions
|
|
@ -403,9 +403,6 @@ const ChatBubble = ({ chatMessage, isLoading }: {
|
|||
// edit mode state
|
||||
const [isEditMode, setIsEditMode] = useState(false)
|
||||
|
||||
if (!chatMessage.displayContent)
|
||||
return null
|
||||
|
||||
let chatbubbleContents: React.ReactNode
|
||||
|
||||
if (role === 'user') {
|
||||
|
|
@ -430,7 +427,7 @@ const ChatBubble = ({ chatMessage, isLoading }: {
|
|||
</>
|
||||
}
|
||||
else if (role === 'assistant') {
|
||||
chatbubbleContents = <ChatMarkdownRender string={chatMessage.displayContent} />
|
||||
chatbubbleContents = <ChatMarkdownRender string={chatMessage.displayContent ?? ''} />
|
||||
}
|
||||
|
||||
return <div
|
||||
|
|
|
|||
Loading…
Reference in a new issue