Skip to content

Commit

Permalink
Only render the block directory when a search term has been entered
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Sep 23, 2019
1 parent ef0ea34 commit ae562e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function InserterMenuDownloadableBlocksPanel() {
<__experimentalInserterMenuExtension>
{
( { onSelect, onHover, filterValue, hasItems } ) => {
if ( hasItems ) {
if ( hasItems || ! filterValue ) {
return null;
}

Expand Down

0 comments on commit ae562e1

Please sign in to comment.