Skip to content

Commit

Permalink
Turns out that the core data reducers needs a slug key (I think)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Dec 6, 2024
1 parent d16b603 commit e0c23de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/edit-site/src/components/add-new-post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function AddNewPostModal( { postType, onSave, onClose } ) {
{
status: 'draft',
title,
slug: title ?? undefined,
content:
!! postTypeObject.template &&
postTypeObject.template.length
Expand Down

0 comments on commit e0c23de

Please sign in to comment.