diff --git a/frontend/app/src/components/chat/chats-history.tsx b/frontend/app/src/components/chat/chats-history.tsx index 60da3185..4f65a193 100644 --- a/frontend/app/src/components/chat/chats-history.tsx +++ b/frontend/app/src/components/chat/chats-history.tsx @@ -43,7 +43,7 @@ export function ChatsHistory () { { - await deleteChat(chat.id); + await deleteChat(chat.id).finally(() => mutate(history => history, { revalidate: true })); }} dialogTitle={`Are you sure to delete ${chat.title}?`} dialogDescription="This action cannot be undone."