diff --git a/packages/block-library/src/template-part/edit/index.js b/packages/block-library/src/template-part/edit/index.js index 56247d7895c662..83b1a8d450b6ca 100644 --- a/packages/block-library/src/template-part/edit/index.js +++ b/packages/block-library/src/template-part/edit/index.js @@ -133,64 +133,66 @@ export default function TemplatePartEdit( { } return ( - - - { isPlaceholder && ( - - - setIsTemplatePartSelectionOpen( true ) - } - /> - - ) } - { canReplace && ( - - { () => ( - { - setIsTemplatePartSelectionOpen( true ); - } } - > - { createInterpolateElement( - __( 'Replace ' ), - { - BlockTitle: ( - - ), - } - ) } - - ) } - - ) } - { isEntityAvailable && ( - 0 } - layout={ layout } + <> + + - ) } - { ! isPlaceholder && ! isResolved && ( - - - - ) } + { isPlaceholder && ( + + + setIsTemplatePartSelectionOpen( true ) + } + /> + + ) } + { canReplace && ( + + { () => ( + { + setIsTemplatePartSelectionOpen( true ); + } } + > + { createInterpolateElement( + __( 'Replace ' ), + { + BlockTitle: ( + + ), + } + ) } + + ) } + + ) } + { isEntityAvailable && ( + 0 } + layout={ layout } + /> + ) } + { ! isPlaceholder && ! isResolved && ( + + + + ) } + { isTemplatePartSelectionOpen && ( ) } - + ); }