From 1ddc450348f6952cf5b55fbfa9a2d8af63bd2dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:01:23 +0200 Subject: [PATCH] Provide the status as fallback for when the status entity does not have data --- packages/edit-site/src/components/page-pages/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/page-pages/index.js b/packages/edit-site/src/components/page-pages/index.js index 2197cab829beaa..b767ad77adc6d9 100644 --- a/packages/edit-site/src/components/page-pages/index.js +++ b/packages/edit-site/src/components/page-pages/index.js @@ -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: { __( 'Actions' ) },