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 26, 2023
1 parent 77eccb3 commit db1b7dd
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 db1b7dd

Please sign in to comment.