mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
fixing convo state in progress
This commit is contained in:
parent
500b6c9fa8
commit
0e5c7c7721
5 changed files with 160 additions and 6 deletions
|
|
@ -36,8 +36,10 @@ export default function TextChat({ messages, reloadConvos }) {
|
|||
dispatch(setMessages([...messages, currentMsg, { sender: 'GPT', text: data }]));
|
||||
};
|
||||
const convoHandler = (data) => {
|
||||
console.log('in convo handler');
|
||||
if (convo.conversationId === null && convo.parentMessageId === null) {
|
||||
const { title, conversationId, parentMessageId } = data;
|
||||
console.log('convo is null');
|
||||
dispatch(setConversation({ title, conversationId, parentMessageId: data.id }));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue