diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index dfc7fae478831..e4eb91e1fc5a7 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 (