Skip to content

Commit

Permalink
Apply SHOWN_BLOCK_TYPES limit to block variations too
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Sep 7, 2020
1 parent 72d8b6e commit 0cc4970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/autocompleters/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function createBlockCompleter() {

const options = useMemo(
() =>
includeVariationsInInserterItems( filteredItems ).map(
includeVariationsInInserterItems( filteredItems, SHOWN_BLOCK_TYPES ).map(
( blockItem ) => {
const { title, icon, isDisabled } = blockItem;
return {
Expand Down

0 comments on commit 0cc4970

Please sign in to comment.