Skip to content

Commit

Permalink
check that the blockName is page-list-item, not the block.name
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Dec 9, 2022
1 parent 87d3d78 commit 871a628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function ListViewBlock( {

const { isTreeGridMounted, expand, collapse } = useListViewContext();

const isEditable = block.name !== 'core/page-list-item';
const isEditable = blockName !== 'core/page-list-item';
const hasSiblings = siblingBlockCount > 0;
const hasRenderedMovers = showBlockMovers && hasSiblings;
const moverCellClassName = classnames(
Expand Down

0 comments on commit 871a628

Please sign in to comment.