Skip to content

Commit

Permalink
Use accessorFn instead of cell to render status value (#55196)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Oct 10, 2023
1 parent cf50d9f commit f0b4192
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ export default function PagePages() {
{
header: 'Status',
id: 'status',
cell: ( props ) =>
postStatuses[ props.row.original.status ] ??
props.row.original.status,
accessorFn: ( page ) =>
postStatuses[ page.status ] ?? page.status,
},
{
header: <VisuallyHidden>{ __( 'Actions' ) }</VisuallyHidden>,
Expand Down

0 comments on commit f0b4192

Please sign in to comment.