Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Nov 28, 2024
1 parent 5a6a4d4 commit e802da6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/post-edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ function PostEditForm( { postType, postId } ) {
);
const [ multiEdits, setMultiEdits ] = useState( {} );
const { editEntityRecord } = useDispatch( coreDataStore );
// TODO: This needs to be dynamic and will be handled in a follow up with the `format` field for posts.
const { fields: _fields } = usePostFields( { postType: 'page' } );
const { fields: _fields } = usePostFields( { postType } );
const fields = useMemo(
() =>
_fields?.map( ( field ) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/dataviews/store/private-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const registerPostTypeSchema =
currentTheme?.[ 'theme-supports' ]?.[ 'post-thumbnails' ] &&
featuredImageField,
titleField,
authorField,
postTypeConfig.supports?.author && authorField,
statusField,
dateField,
slugField,
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/dataviews/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface PostType {
revisions?: boolean;
thumbnail?: boolean;
comments?: boolean;
author?: boolean;
};
}

Expand Down

0 comments on commit e802da6

Please sign in to comment.