Skip to content

Commit

Permalink
fix bug because of typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Mar 22, 2024
1 parent ae9dd16 commit bca7a8b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function BlockSelectionButton( { clientId, rootClientId } ) {
getBlockListSettings,
__unstableGetEditorMode,
getNextBlockClientId,
getPreviousBlockClientId,
} = select( blockEditorStore );
const { getActiveBlockVariation, getBlockType } =
select( blocksStore );
Expand All @@ -74,7 +75,7 @@ function BlockSelectionButton( { clientId, rootClientId } ) {
blockType?.name === 'core/template-part';

let isNextBlockTemplatePart = false;
const nextClientId = getNextBlockClientId( clientId );
const nextClientId = getNextBlockClientId();
if ( nextClientId ) {
const { name: nextName } = getBlock( nextClientId );
const nextBlockType = getBlockType( nextName );
Expand All @@ -83,7 +84,7 @@ function BlockSelectionButton( { clientId, rootClientId } ) {
}

let isPrevBlockTemplatePart = false;
const prevClientId = getNextBlockClientId( clientId );
const prevClientId = getPreviousBlockClientId();
if ( prevClientId ) {
const { name: prevName } = getBlock( prevClientId );
const prevBlockType = getBlockType( prevName );
Expand Down

0 comments on commit bca7a8b

Please sign in to comment.