Refresh router when creating and deleting chats

This commit is contained in:
Steven Tey 2023-06-17 13:15:14 -05:00
parent 865899afad
commit 17efa26555
2 changed files with 7 additions and 0 deletions

View file

@ -200,7 +200,9 @@ export function SidebarActions({
}
setDeleteDialogOpen(false)
router.refresh()
router.push('/')
toast.success('Chat deleted')
})
}}
>