Skip to content

Commit

Permalink
Update field render
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 18, 2023
1 parent 00d47a7 commit d95e570
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function PagePages() {
header: __( 'Title' ),
id: 'title',
getValue: ( { item } ) => item.title?.rendered || item.slug,
render: ( { item } ) => {
render: ( { item, view: { type } } ) => {
return (
<VStack spacing={ 1 }>
<Heading as="h3" level={ 5 }>
Expand All @@ -129,8 +129,7 @@ export default function PagePages() {
} }
onClick={ ( event ) => {
if (
viewTypeSupportsMap[ view.type ]
.preview
viewTypeSupportsMap[ type ].preview
) {
event.preventDefault();
setSelection( [ item.id ] );
Expand Down Expand Up @@ -208,7 +207,7 @@ export default function PagePages() {
enableSorting: false,
},
],
[ postStatuses, authors, view.type ]
[ postStatuses, authors ]
);

const trashPostAction = useTrashPostAction();
Expand Down

0 comments on commit d95e570

Please sign in to comment.