Skip to content

Commit

Permalink
Removing variations from block inspector panel if template is locked
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 30, 2024
1 parent 2033b2f commit 7c9aed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function BlockInspectorLockedBlocks( { topLevelLockedBlock } ) {
{ ...blockInformation }
className={ blockInformation.isSynced && 'is-synced' }
/>
<BlockVariationTransforms blockClientId={ topLevelLockedBlock } />
<BlockInfo.Slot />
{ hasBlockStyles && (
<BlockStylesPanel clientId={ topLevelLockedBlock } />
Expand Down
5 changes: 2 additions & 3 deletions packages/block-editor/src/components/block-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ function BlockSwitcherDropdownMenuContents( {
const hasPossibleBlockVariationTransformations =
!! blockVariationTransformations?.length;
const hasPatternTransformation = !! patterns?.length && canRemove;
/* const hasBlockOrBlockVariationTransforms =
const hasBlockOrBlockVariationTransforms =
hasPossibleBlockTransformations ||
hasPossibleBlockVariationTransformations;*/
const hasBlockOrBlockVariationTransforms = false;
hasPossibleBlockVariationTransformations;
const hasContents =
hasBlockStyles ||
hasBlockOrBlockVariationTransforms ||
Expand Down

0 comments on commit 7c9aed4

Please sign in to comment.