From a9b54aa5ba2d10151d080eda658a0f0190162232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Mon, 27 Feb 2023 19:29:20 +0200 Subject: [PATCH] wip --- .../src/components/block-list/index.js | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/packages/block-editor/src/components/block-list/index.js b/packages/block-editor/src/components/block-list/index.js index 2193cedcf1c10..0d3579b17e256 100644 --- a/packages/block-editor/src/components/block-list/index.js +++ b/packages/block-editor/src/components/block-list/index.js @@ -144,17 +144,11 @@ function Items( { __experimentalAppenderTagName, __experimentalLayout: layout = defaultLayout, } ) { - const { order, selectedBlocks, visibleBlocks } = useSelect( + const { order } = useSelect( ( select ) => { - const { - getBlockOrder, - getSelectedBlockClientIds, - __unstableGetVisibleBlocks, - } = select( blockEditorStore ); + const { getBlockOrder } = select( blockEditorStore ); return { order: getBlockOrder( rootClientId ), - selectedBlocks: getSelectedBlockClientIds(), - visibleBlocks: __unstableGetVisibleBlocks(), }; }, [ rootClientId ] @@ -163,15 +157,7 @@ function Items( { return ( { order.map( ( clientId ) => ( - +