Skip to content

Commit

Permalink
fix(frontend): reload chat list after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Aug 30, 2024
1 parent 8821815 commit a0ced17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/src/components/chat/chats-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function ChatsHistory () {
<DangerousActionButton
asChild
action={async () => {
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."
Expand Down

0 comments on commit a0ced17

Please sign in to comment.