Skip to content

Commit

Permalink
Add fallback for orphaned template part
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jul 27, 2023
1 parent 065ca5c commit 0a145e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function usePatternDetails( postType, postId ) {

details.push( {
label: __( 'Area' ),
value: templatePartArea?.label,
value: templatePartArea?.label || record.area || __( 'None' ),
} );
}

Expand Down

0 comments on commit 0a145e7

Please sign in to comment.