diff --git a/src/blocks/plugins/patterns-library/library.js b/src/blocks/plugins/patterns-library/library.js index 9e7d1a132..5a14e0996 100644 --- a/src/blocks/plugins/patterns-library/library.js +++ b/src/blocks/plugins/patterns-library/library.js @@ -142,7 +142,7 @@ const Library = ({ const currentCategory = 'favorites' === selectedCategory ? patterns.filter( pattern => getFavorites.includes( pattern.name ) ) : patterns.filter( pattern => pattern.categories.includes( selectedCategory ) ); if ( searchInput ) { - return currentCategory.filter( pattern => pattern.name.toLowerCase().includes( searchInput.toLowerCase() ) ); + return currentCategory.filter( pattern => pattern.title.toLowerCase().includes( searchInput.toLowerCase() ) ); } return currentCategory;