diff --git a/packages/block-editor/src/components/block-variation-transforms/index.js b/packages/block-editor/src/components/block-variation-transforms/index.js index 4c90009ea0000..27916f3e081b2 100644 --- a/packages/block-editor/src/components/block-variation-transforms/index.js +++ b/packages/block-editor/src/components/block-variation-transforms/index.js @@ -26,12 +26,17 @@ function VariationsButtons( { selectedValue, variations, } ) { + // Filters out the hidden scope transforms, which do not render in the block card. + const filteredVariations = variations.filter( + ( variation ) => ! variation.scope.includes( 'hidden' ) + ); + return (
{ __( 'Transform to variation' ) } - { variations.map( ( variation ) => ( + { filteredVariations.map( ( variation ) => (