Skip to content

Commit

Permalink
Merge pull request #234 from ahsanzizan/main
Browse files Browse the repository at this point in the history
Fixes path revalidation issues
  • Loading branch information
ahsanzizan authored Jul 10, 2024
2 parents 8dfa8be + a2dbae0 commit b29435d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/actions/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export async function postCreate(

revalidatePath("/berita");
revalidatePath("/admin/posts");
revalidatePath("/");

return { message: "Success", result: { id: newPost.id } };
} catch (e) {
Expand Down
1 change: 0 additions & 1 deletion src/app/(admin)/admin/posts/[id]/_components/Tags.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit b29435d

Please sign in to comment.