diff --git a/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js b/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js index 3c42bdcdb4a48..e3d411d07f726 100644 --- a/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js +++ b/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js @@ -10,11 +10,15 @@ import { useEffect, useState } from '@wordpress/element'; import BlockPopoverInbetween from '../block-popover/inbetween'; import { store as blockEditorStore } from '../../store'; import Inserter from '../inserter'; +import { unlock } from '../../lock-unlock'; function ZoomOutModeInserters( { __unstableContentRef } ) { const [ isReady, setIsReady ] = useState( false ); const blockOrder = useSelect( ( select ) => { - return select( blockEditorStore ).getBlockOrder(); + const { sectionRootClientId } = unlock( + select( blockEditorStore ).getSettings() + ); + return select( blockEditorStore ).getBlockOrder( sectionRootClientId ); }, [] ); // Defer the initial rendering to avoid the jumps due to the animation.