Skip to content

Commit

Permalink
remove whitespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 29, 2024
1 parent 43538ef commit ca38b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ function Items( {
// function on every render.
const hasAppender = CustomAppender !== false;
const hasCustomAppender = !! CustomAppender;

const { order, selectedBlocks, visibleBlocks, shouldRenderAppender } =
useSelect(
( select ) => {
Expand All @@ -193,6 +192,7 @@ function Items( {
getBlockEditingMode,
__unstableGetEditorMode,
} = select( blockEditorStore );

const _order = getBlockOrder( rootClientId );

if ( getSettings().__unstableIsPreviewMode ) {
Expand All @@ -202,8 +202,8 @@ function Items( {
visibleBlocks: EMPTY_SET,
};
}
const selectedBlockClientId = getSelectedBlockClientId();

const selectedBlockClientId = getSelectedBlockClientId();
return {
order: _order,
selectedBlocks: getSelectedBlockClientIds(),
Expand Down

0 comments on commit ca38b54

Please sign in to comment.