Remove auth on delete for now

This commit is contained in:
Jared Palmer 2023-06-02 14:28:05 -04:00
parent a7af3107b5
commit 01527d450b
4 changed files with 27 additions and 9 deletions

View file

@ -11,10 +11,12 @@ export function SidebarItem({
title,
href,
id,
userId,
}: {
title: string;
href: string;
id: string;
userId: string;
}) {
const pathname = usePathname();
const router = useRouter();
@ -49,7 +51,7 @@ export function SidebarItem({
onClick={(e) => {
e.preventDefault();
startTransition(() => {
removeChat({ id, path: href }).then(() => {
removeChat({ id, userId, path: href }).then(() => {
router.push("/");
});
});