diff --git a/packages/block-library/src/buttons/edit.js b/packages/block-library/src/buttons/edit.js index 812cbf8cc1615..fb3a237584dbf 100644 --- a/packages/block-library/src/buttons/edit.js +++ b/packages/block-library/src/buttons/edit.js @@ -52,14 +52,14 @@ function ButtonsEdit( { const innerBlocksProps = useInnerBlocksProps( blockProps, { allowedBlocks: ALLOWED_BLOCKS, - template: [ - [ - 'core/button', - preferredStyle - ? { className: `is-style-${ preferredStyle }` } - : {}, - ], - ], + template: preferredStyle + ? [ + [ + 'core/button', + { className: `is-style-${ preferredStyle }` }, + ], + ] + : [ [ 'core/button' ] ], orientation, __experimentalLayout: LAYOUT, templateInsertUpdatesSelection: true,