Skip to content

Commit

Permalink
Improve comment clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Dec 13, 2021
1 parent 4cd7d1e commit 58fee8f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export default function BlockSupportToolsPanel( { children, group, label } ) {
hasMultiSelection,
} = select( blockEditorStore );

// This is `null` if multi-selection and used in `clientId` checks
// to still allow panel items to register themselves.
// When we currently have a multi-selection, the value returned from
// `getSelectedBlockClientId()` is `null`. When a `null` value is used
// for the `panelId`, a `ToolsPanel` will still allow panel items to
// register themselves despite their panelIds not matching.
const selectedBlockClientId = getSelectedBlockClientId();

if ( hasMultiSelection() ) {
Expand Down

0 comments on commit 58fee8f

Please sign in to comment.