Skip to content

Commit

Permalink
Remove obsolete getVariations call that was disconnected in #25182
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jan 26, 2021
1 parent df74e16 commit f51c381
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/block-editor/src/components/inserter/search-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@ export const searchBlockItems = (
find( categories, { slug: item.category } )?.title,
getCollection: ( item ) =>
collections[ item.name.split( '/' )[ 0 ] ]?.title,
getVariations: ( { variations = [] } ) =>
Array.from(
variations.reduce(
( accumulator, { title, keywords = [] } ) => {
accumulator.add( title );
keywords.forEach( ( keyword ) =>
accumulator.add( keyword )
);
return accumulator;
},
new Set()
)
),
};

return searchItems( items, searchInput, config );
Expand Down

0 comments on commit f51c381

Please sign in to comment.