From e0c23de4de6a5d8fb92d98f0d81a5ff803e01337 Mon Sep 17 00:00:00 2001 From: ramon Date: Sat, 7 Dec 2024 10:01:36 +1100 Subject: [PATCH] Turns out that the core data reducers needs a slug key (I think) --- packages/edit-site/src/components/add-new-post/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/edit-site/src/components/add-new-post/index.js b/packages/edit-site/src/components/add-new-post/index.js index ca0c7e1cd8e988..a30f5995aab6fa 100644 --- a/packages/edit-site/src/components/add-new-post/index.js +++ b/packages/edit-site/src/components/add-new-post/index.js @@ -45,6 +45,7 @@ export default function AddNewPostModal( { postType, onSave, onClose } ) { { status: 'draft', title, + slug: title ?? undefined, content: !! postTypeObject.template && postTypeObject.template.length