From ca38b54e70420e024be27783039fb40a6d9619a7 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Fri, 26 Jul 2024 08:25:08 +0100 Subject: [PATCH] remove whitespace change --- packages/block-editor/src/components/block-list/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-list/index.js b/packages/block-editor/src/components/block-list/index.js index ec85ad9c554748..f5489a1ab4702f 100644 --- a/packages/block-editor/src/components/block-list/index.js +++ b/packages/block-editor/src/components/block-list/index.js @@ -179,7 +179,6 @@ function Items( { // function on every render. const hasAppender = CustomAppender !== false; const hasCustomAppender = !! CustomAppender; - const { order, selectedBlocks, visibleBlocks, shouldRenderAppender } = useSelect( ( select ) => { @@ -193,6 +192,7 @@ function Items( { getBlockEditingMode, __unstableGetEditorMode, } = select( blockEditorStore ); + const _order = getBlockOrder( rootClientId ); if ( getSettings().__unstableIsPreviewMode ) { @@ -202,8 +202,8 @@ function Items( { visibleBlocks: EMPTY_SET, }; } - const selectedBlockClientId = getSelectedBlockClientId(); + const selectedBlockClientId = getSelectedBlockClientId(); return { order: _order, selectedBlocks: getSelectedBlockClientIds(),