diff --git a/packages/block-editor/src/components/block-navigation/tree.js b/packages/block-editor/src/components/block-navigation/tree.js index 65f798781364b2..0931c667f8612f 100644 --- a/packages/block-editor/src/components/block-navigation/tree.js +++ b/packages/block-editor/src/components/block-navigation/tree.js @@ -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 @@ -33,7 +35,7 @@ import { store as blockEditorStore } from '../../store'; export default function BlockNavigationTree( { blocks, showOnlyCurrentHierarchy, - onSelect = () => {}, + onSelect = noop, selectedBlockClientIds, __experimentalFeatures, __experimentalPersistentListViewFeatures,