fix:static page pagination

This commit is contained in:
Rama Priyanto 2024-11-29 19:08:40 +07:00
parent d22ec72066
commit e064a7a431
2 changed files with 7 additions and 7 deletions

View File

@ -114,12 +114,12 @@ export default function StaticPageBuilderEdit() {
} }
}); });
} }
const title = watch("title"); // const title = watch("title");
useEffect(() => { // useEffect(() => {
if (getValues("title")) { // if (getValues("title")) {
setValue("slug", createSlug(getValues("title"))); // setValue("slug", createSlug(getValues("title")));
} // }
}, [title]); // }, [title]);
return ( return (
<form <form

View File

@ -69,7 +69,7 @@ export default function StaticPageTable() {
async function initState() { async function initState() {
const req = { const req = {
limit: showData, limit: showData,
page: page - 1, page: page,
search: search, search: search,
}; };
const res = await getCustomStaticPage(req); const res = await getCustomStaticPage(req);