diff --git a/app/[locale]/(default)/dashboard/pages/components/PageForm/index.tsx b/app/[locale]/(default)/dashboard/pages/components/PageForm/index.tsx index 75ec332e..5b670986 100644 --- a/app/[locale]/(default)/dashboard/pages/components/PageForm/index.tsx +++ b/app/[locale]/(default)/dashboard/pages/components/PageForm/index.tsx @@ -25,7 +25,7 @@ import { DeleteSection } from './DeleteSection'; export type PageFormProps = { title?: string; backPath?: string; - data: Page | null; + data?: Page | null; }; export const PageForm = ({ diff --git a/app/[locale]/(default)/dashboard/posts/components/PostForm/index.tsx b/app/[locale]/(default)/dashboard/posts/components/PostForm/index.tsx index 1e8903f4..31fdf4b5 100644 --- a/app/[locale]/(default)/dashboard/posts/components/PostForm/index.tsx +++ b/app/[locale]/(default)/dashboard/posts/components/PostForm/index.tsx @@ -25,7 +25,7 @@ import { DeleteSection } from './DeleteSection'; export type PostFormProps = { title?: string; backPath?: string; - data: Post | null; + data?: Post | null; }; export const PostForm = ({