clears conversations and no new line on enter

This commit is contained in:
Danny Avila 2023-02-08 08:27:23 -05:00
parent 51d93da3f8
commit 58498ed951
3 changed files with 19 additions and 7 deletions

View file

@ -15,6 +15,9 @@ export default function Conversation({ id, parentMessageId, title = 'New convers
);
const clickHandler = async () => {
if (conversationId === id) {
return;
}
dispatch(setConversation({ conversationId: id, parentMessageId }));
const data = await trigger();