From e064a7a431b41f1631f784009a144c065a381b78 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Fri, 29 Nov 2024 19:08:40 +0700 Subject: [PATCH] fix:static page pagination --- .../form/static-page/static-page-edit-form.tsx | 12 ++++++------ components/table/static-page-table.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/form/static-page/static-page-edit-form.tsx b/components/form/static-page/static-page-edit-form.tsx index a079dfc..e4f259a 100644 --- a/components/form/static-page/static-page-edit-form.tsx +++ b/components/form/static-page/static-page-edit-form.tsx @@ -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 (