diff --git a/packages/block-editor/src/components/list-view/block.js b/packages/block-editor/src/components/list-view/block.js index f79c708065d1a1..695c716caf94f8 100644 --- a/packages/block-editor/src/components/list-view/block.js +++ b/packages/block-editor/src/components/list-view/block.js @@ -92,13 +92,11 @@ function ListViewBlock( { select( blockEditorStore ).getBlockEditingMode( clientId ), [ clientId ] ); - - const { allowRightClickOverrides } = useSelect( ( select ) => { - const { getSettings } = select( blockEditorStore ); - return { - allowRightClickOverrides: getSettings().allowRightClickOverrides, - }; - } ); + const allowRightClickOverrides = useSelect( + ( select ) => + select( blockEditorStore ).getSettings().allowRightClickOverrides, + [] + ); const showBlockActions = // When a block hides its toolbar it also hides the block settings menu,