Skip to content

Commit

Permalink
WPCompleter: Restrict block list to allowed blocks only (#64413)
Browse files Browse the repository at this point in the history
Unlinked contributors: ssang.

Co-authored-by: talldan <[email protected]>
  • Loading branch information
ssang and talldan committed Aug 13, 2024
1 parent ae218b7 commit ac02098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/autocompleters/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function createBlockCompleter() {
}, [] );
const [ items, categories, collections ] = useBlockTypesState(
rootClientId,
noop
noop,
true
);

const filteredItems = useMemo( () => {
Expand Down

0 comments on commit ac02098

Please sign in to comment.