Skip to content

Commit

Permalink
Move noop to const
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed May 17, 2021
1 parent 443bc1a commit ed7e1e9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import useBlockNavigationClientIds from './use-block-navigation-client-ids';
import useBlockNavigationDropZone from './use-block-navigation-drop-zone';
import { store as blockEditorStore } from '../../store';

const noop = () => {};

/**
* Wrap `BlockNavigationRows` with `TreeGrid`. BlockNavigationRows is a
* recursive component (it renders itself), so this ensures TreeGrid is only
Expand All @@ -33,7 +35,7 @@ import { store as blockEditorStore } from '../../store';
export default function BlockNavigationTree( {
blocks,
showOnlyCurrentHierarchy,
onSelect = () => {},
onSelect = noop,
selectedBlockClientIds,
__experimentalFeatures,
__experimentalPersistentListViewFeatures,
Expand Down

0 comments on commit ed7e1e9

Please sign in to comment.