Skip to content

Commit

Permalink
Provide the status as fallback for when the status entity does not ha…
Browse files Browse the repository at this point in the history
…ve data
  • Loading branch information
oandregal committed Oct 5, 2023
1 parent 86c8b42 commit 1ddc450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export default function PagePages() {
{
header: 'Status',
id: 'status',
cell: ( props ) => postStatuses[ props.row.original.status ],
cell: ( props ) =>
postStatuses[ props.row.original.status ] ??
props.row.original.status,
},
{
header: <VisuallyHidden>{ __( 'Actions' ) }</VisuallyHidden>,
Expand Down

0 comments on commit 1ddc450

Please sign in to comment.