From b953534081e6735368bf2b512152497c9c17020f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Wed, 7 Oct 2020 12:20:44 +0200 Subject: [PATCH] Remove appender --- packages/block-library/src/quote/edit.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/block-library/src/quote/edit.js b/packages/block-library/src/quote/edit.js index 26969af801aac7..21b286096af02e 100644 --- a/packages/block-library/src/quote/edit.js +++ b/packages/block-library/src/quote/edit.js @@ -33,14 +33,13 @@ export default function QuoteEdit( { } ), } ); - const { hasChildBlocks, isAncestorOfSelectedBlock } = useSelect( + const { isAncestorOfSelectedBlock } = useSelect( ( select ) => { - const { getBlockOrder, hasSelectedInnerBlock } = select( + const { hasSelectedInnerBlock } = select( 'core/block-editor' ); return { - hasChildBlocks: getBlockOrder( clientId ).length > 0, isAncestorOfSelectedBlock: hasSelectedInnerBlock( clientId, true @@ -68,11 +67,6 @@ export default function QuoteEdit( { 'core/list', 'core/paragraph', ] } - renderAppender={ - hasChildBlocks - ? undefined - : InnerBlocks.ButtonBlockAppender - } /> { ( ! RichText.isEmpty( citation ) || isSelected ||