From db1b7dd8ea4346f681dbe39841d2a55de7dc9c4d Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:12:14 +1000 Subject: [PATCH] Add fallback for orphaned template part --- .../sidebar-navigation-screen-pattern/use-pattern-details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js b/packages/edit-site/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js index 346601253cbd02..099abf789678b2 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js @@ -84,7 +84,7 @@ export default function usePatternDetails( postType, postId ) { details.push( { label: __( 'Area' ), - value: templatePartArea?.label, + value: templatePartArea?.label || record.area || __( 'None' ), } ); }