delete updates state title

This commit is contained in:
Daniel Avila 2023-02-11 12:49:07 -05:00
parent ef4ec39a76
commit e8c514fff9

View file

@ -13,7 +13,7 @@ export default function DeleteButton({ conversationId, renaming, cancelHandler }
'post',
() => {
dispatch(setMessages([]));
dispatch(setConversation({ conversationId: null, parentMessageId: null }));
dispatch(setConversation({ title: 'New chat', conversationId: null, parentMessageId: null }));
}
);