Skip to content

Commit

Permalink
ensure 'Custom' title for search results as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo committed Oct 30, 2020
1 parent 3dbf40a commit c2182c6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ function TemplatePartSearchResults( {
const currentShownTPs = useAsyncList( filteredTPs );

return filteredTPs.map( ( templatePart ) => (
<PanelGroup key={ templatePart.id } title={ templatePart.meta.theme }>
<PanelGroup
key={ templatePart.id }
title={ templatePart.meta.theme || __( 'Custom' ) }
>
{ currentShownTPs.includes( templatePart ) ? (
<TemplatePartItem
key={ templatePart.id }
Expand Down

0 comments on commit c2182c6

Please sign in to comment.