diff --git a/src/actions/post.ts b/src/actions/post.ts index 32a13435..e0ca2e34 100644 --- a/src/actions/post.ts +++ b/src/actions/post.ts @@ -95,6 +95,7 @@ export async function postCreate( revalidatePath("/berita"); revalidatePath("/admin/posts"); + revalidatePath("/"); return { message: "Success", result: { id: newPost.id } }; } catch (e) { diff --git a/src/app/(admin)/admin/posts/[id]/_components/Tags.tsx b/src/app/(admin)/admin/posts/[id]/_components/Tags.tsx index b208e567..0860b4bb 100644 --- a/src/app/(admin)/admin/posts/[id]/_components/Tags.tsx +++ b/src/app/(admin)/admin/posts/[id]/_components/Tags.tsx @@ -1,7 +1,6 @@ "use client"; import { Roles, Tag } from "@prisma/client"; -import { Session } from "next-auth"; import { Dispatch, SetStateAction } from "react"; import { ActionMeta, MultiValue, OnChangeValue } from "react-select"; import CreatableSelect from "react-select/creatable";