Fixed message not being displayed
This commit is contained in:
parent
5a412b33fe
commit
9cafc09d6f
3 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ export default function ChatMessage({
|
|||
|
||||
useEffect(() => {
|
||||
// This effect is specifically for calling updateChat after streaming ends
|
||||
if (!isStreaming && streamUrl === null) {
|
||||
if (!isStreaming && streamUrl) {
|
||||
if (updateChat) {
|
||||
updateChat(chat, chatMessage, streamUrl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -576,6 +576,7 @@ export default function FormModal({
|
|||
chatHistory.length - 1 === index ? true : false
|
||||
}
|
||||
key={index}
|
||||
updateChat={() => {}}
|
||||
/>
|
||||
))
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -524,6 +524,7 @@ export type chatMessagePropsType = {
|
|||
chat: ChatMessageType;
|
||||
lockChat: boolean;
|
||||
lastMessage: boolean;
|
||||
updateChat: (chat: ChatMessageType, message: string, stream_url: string) => void;
|
||||
};
|
||||
|
||||
export type formModalPropsType = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue