Commit b402af5d by Arjun Jhukal

updated the functionality for the update page

parent e6dc26f6
...@@ -34,7 +34,10 @@ export default function AddPageForm({ id }: { id?: string }) { ...@@ -34,7 +34,10 @@ export default function AddPageForm({ id }: { id?: string }) {
name: data?.data?.name || "", name: data?.data?.name || "",
slug: data?.data?.slug || "", slug: data?.data?.slug || "",
description: data?.data?.description || "", description: data?.data?.description || "",
content: data?.data?.content || [] content: data?.data?.content || [{
description: "",
heading: "",
}]
} : pageInitialData, } : pageInitialData,
enableReinitialize: true, enableReinitialize: true,
validationSchema: Yup.object({ validationSchema: Yup.object({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment