Fix showing name of active model when delete conversation
This commit is contained in:
parent
f4d390cb4f
commit
f5e39fe2d7
@ -47,7 +47,7 @@ export default function useDeleteConversation() {
|
||||
deleteMessages(activeConvoId)
|
||||
toaster({
|
||||
title: 'Succes delete a chat',
|
||||
description: `Delete chat with ${activeModel} has been completed`,
|
||||
description: `Delete chat with ${activeModel?.name} has been completed`,
|
||||
})
|
||||
if (currentConversations.length > 0) {
|
||||
setActiveConvoId(currentConversations[0]._id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user