From 7fc2093e919bbeae6efa7f2a778b2a0ad42e1ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=AD=D8=B3=DB=8C=D9=86=20=D9=85=D8=B9=D8=B5=D9=88=D9=85?= =?UTF-8?q?=DB=8C=20=D9=BE=D9=88=D8=B1?= Date: Fri, 26 Apr 2024 01:34:46 +0330 Subject: [PATCH] fix4 --- src/app/blogs/page.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/blogs/page.jsx b/src/app/blogs/page.jsx index 54ded16..5179a43 100644 --- a/src/app/blogs/page.jsx +++ b/src/app/blogs/page.jsx @@ -4,9 +4,14 @@ import React from "react"; async function getData(sParams) { // + const query = { + page: 0, + ...sParams, + }; + const res = await fetch( `${process.env.NEXT_PUBLIC_API_URL}/blog?` + - new URLSearchParams({ ...sParams }) + new URLSearchParams({ ...query }) // ?page=${params.page ?? 0} // { cache: "no-cache" } );