diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index dfc7fae4788319..e4eb91e1fc5a7d 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -262,6 +262,8 @@ const BlockInspectorSingleBlock = ( { ), }; } ); + const { __unstableGetEditorMode } = useSelect( blockEditorStore ); + const editorMode = __unstableGetEditorMode(); return (