fix: add "use server" to blog cards component

This commit is contained in:
Dorian Niemiec 2024-09-07 13:24:41 +02:00
parent 188c5c0f40
commit 3feba5be25

View file

@ -27,6 +27,7 @@ interface BlogCardsProps {
}
const BlogCards: React.FC<BlogCardsProps> = async ({ searchParams }) => {
"use server";
const cardsPerPage = 6;
const currentPage = searchParams.page ? parseInt(searchParams.page) : 1;