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");
useEffect(() => {
if (getValues("title")) {
setValue("slug", createSlug(getValues("title")));
}
}, [title]);
// const title = watch("title");
// useEffect(() => {
// if (getValues("title")) {
// setValue("slug", createSlug(getValues("title")));
// }
// }, [title]);
return (
<form

View File

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