Skip to content

Commit

Permalink
Inserter: Clarify inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jun 18, 2020
1 parent 3bb29ad commit 8b5ca5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/inserter/block-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ export function InserterBlockList( {
{ hasChildItems && (
<ChildBlocks rootClientId={ rootClientId }>
<BlockTypesList
// Pass along every block, as getInserterItems() will have
// already filtered out non-child blocks.
// Pass along every block, as useBlockTypesState() and
// getInserterItems() will have already filtered out
// non-child blocks.
items={ filteredItems }
onSelect={ onSelectItem }
onHover={ onHover }
Expand Down

0 comments on commit 8b5ca5a

Please sign in to comment.