completed location deletion
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { deleteBillById } from '@/app/lib/billActions';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
|
||||
export default async function Page({ params:{ id } }: { params: { id:string } }) {
|
||||
@@ -8,5 +9,6 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
|
||||
return(notFound());
|
||||
}
|
||||
|
||||
revalidatePath('/');
|
||||
redirect(`/`);
|
||||
}
|
||||
Reference in New Issue
Block a user