Refresh router when creating and deleting chats
This commit is contained in:
parent
865899afad
commit
17efa26555
2 changed files with 7 additions and 0 deletions
|
|
@ -200,7 +200,9 @@ export function SidebarActions({
|
|||
}
|
||||
|
||||
setDeleteDialogOpen(false)
|
||||
router.refresh()
|
||||
router.push('/')
|
||||
toast.success('Chat deleted')
|
||||
})
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue