diff --git a/packages/block-editor/src/store/private-selectors.js b/packages/block-editor/src/store/private-selectors.js index 6af0ff6ab9d5d..7e997217675d3 100644 --- a/packages/block-editor/src/store/private-selectors.js +++ b/packages/block-editor/src/store/private-selectors.js @@ -565,5 +565,5 @@ export function getSectionRootClientId( state ) { */ export function getSectionClientIds( state ) { const sectionRootClientId = getSectionRootClientId( state ); - return getBlockOrder( sectionRootClientId ); + return getBlockOrder( state, sectionRootClientId ); } diff --git a/packages/editor/src/components/provider/content-only-lock-sections.js b/packages/editor/src/components/provider/content-only-lock-sections.js index 3e1ed50c2f108..aa231d03ad970 100644 --- a/packages/editor/src/components/provider/content-only-lock-sections.js +++ b/packages/editor/src/components/provider/content-only-lock-sections.js @@ -23,14 +23,14 @@ export default function ContentOnlyLockSections() { const selected = useSelect( ( select ) => { const { - getBlockOrder, getClientIdsOfDescendants, getClientIdsWithDescendants, getSectionRootClientId, + getSectionClientIds, } = unlock( select( blockEditorStore ) ); const sectionRootClientId = getSectionRootClientId(); - const sectionClientIds = getBlockOrder( sectionRootClientId ); + const sectionClientIds = getSectionClientIds(); const allClientIds = sectionRootClientId ? getClientIdsOfDescendants( sectionRootClientId ) : getClientIdsWithDescendants();