Skip to content

Commit

Permalink
Extract template const
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 24, 2022
1 parent ef2b114 commit 7de5a5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/quote/v2/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
import { useSelect } from '@wordpress/data';
import { createBlock } from '@wordpress/blocks';

const TEMPLATE = [ [ 'core/paragraph', {} ] ];

export default function QuoteEdit( {
attributes: { attribution },
setAttributes,
Expand All @@ -37,7 +39,7 @@ export default function QuoteEdit( {
const innerBlocksProps = useInnerBlocksProps(
showAttribution ? blockProps : {},
{
template: [ [ 'core/paragraph', {} ] ],
template: TEMPLATE,
templateInsertUpdatesSelection: true,
}
);
Expand Down

0 comments on commit 7de5a5f

Please sign in to comment.