Skip to content

Commit

Permalink
Remove appender
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 8, 2020
1 parent 3c6effd commit bc258dc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/block-library/src/quote/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -68,11 +67,6 @@ export default function QuoteEdit( {
'core/list',
'core/paragraph',
] }
renderAppender={
hasChildBlocks
? undefined
: InnerBlocks.ButtonBlockAppender
}
/>
{ ( ! RichText.isEmpty( citation ) ||
isSelected ||
Expand Down

0 comments on commit bc258dc

Please sign in to comment.