Skip to content

Commit

Permalink
Update menu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored and jorgefilipecosta committed Mar 11, 2019
1 parent fb684ce commit 764a5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default compose(
__experimentalFetchReusableBlocks: fetchReusableBlocks,
} = dispatch( 'core/editor' );

// To avoid duplication, getInsertionPoint is extracted and used in two event handlers
// To avoid duplication, getInsertionIndex is extracted and used in two event handlers
// This breaks the withDispatch not containing any logic rule.
// Since it's a function only called when the event handlers are called,
// it's fine to extract it.
Expand Down

0 comments on commit 764a5f0

Please sign in to comment.