feat: add delete functionality to admin forms list and correct redirection paths
This commit is contained in:
+2
-2
@@ -54,6 +54,6 @@ export async function deleteForm(id: string) {
|
||||
}
|
||||
|
||||
await db.delete(forms).where(eq(forms.id, id));
|
||||
revalidatePath("/form/admin");
|
||||
redirect("/form/admin");
|
||||
revalidatePath("/admin/form");
|
||||
redirect("/admin/form");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user