Skip to content

Commit

Permalink
Fix naming nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jul 15, 2022
1 parent d009869 commit 90101fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-library/src/template-part/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ export default function TemplatePartEdit( {
setIsTemplatePartSelectionOpen( false );
} }
onPatternSelect={ async ( pattern, blocks ) => {
const isReplacingTemplatePartContent =
!! templatePartId;
if ( isReplacingTemplatePartContent ) {
const hasSelectedTemplatePart = !! templatePartId;
if ( hasSelectedTemplatePart ) {
replaceInnerBlocks( clientId, blocks );
} else {
const postData = createTemplatePartPostData(
Expand Down

0 comments on commit 90101fc

Please sign in to comment.