Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Smith <getdavemail@gmail.com>
  • Loading branch information
colorful-tones and getdave authored Sep 11, 2024
1 parent 74d3cf5 commit 7f23471
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,13 @@ export function isZoomOutMode( state ) {
}

/**
* Retrieves the root client ID for a section from the state.
* Retrieves the client ID of the block which contains the blocks
* acting as "sections" in the editor. This is typically the "main content"
* of the template/post.
*
* @param {Object} state Editor state.
*
* @return {string|undefined} The root client ID for the section, or undefined if not set.
* @return {string|undefined} The section root client ID or undefined if not set.
*/
export function getSectionRootClientId( state ) {
return state.settings?.[ sectionRootClientIdKey ];
Expand Down

0 comments on commit 7f23471

Please sign in to comment.