diff --git a/packages/block-editor/src/autocompleters/block.js b/packages/block-editor/src/autocompleters/block.js index fb5300aab7ff82..4d189e52b7cdd4 100644 --- a/packages/block-editor/src/autocompleters/block.js +++ b/packages/block-editor/src/autocompleters/block.js @@ -40,11 +40,13 @@ function createBlockCompleter() { const { getSelectedBlockClientId, getBlockName, - getBlockInsertionPoint, getBlockListSettings, + getBlockRootClientId, } = select( blockEditorStore ); const selectedBlockClientId = getSelectedBlockClientId(); - const _rootClientId = getBlockInsertionPoint().rootClientId; + const _rootClientId = getBlockRootClientId( + selectedBlockClientId + ); return { selectedBlockName: selectedBlockClientId ? getBlockName( selectedBlockClientId )