File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import Inspector from './inspector';
1515import { __ , sprintf } from '@wordpress/i18n' ;
1616import apiFetch from '@wordpress/api-fetch' ;
1717import { Component , Fragment } from '@wordpress/element' ;
18+ import { InspectorControls } from '@wordpress/block-editor' ;
1819import {
1920 unescapeHTML ,
2021 filterData ,
@@ -425,9 +426,17 @@ class Editor extends Component {
425426 render ( ) {
426427 return (
427428 < Fragment >
428- { 'fetched' === this . state . route && (
429- < Inspector edit = { this } state = { this . state } { ...this . props } />
430- ) }
429+ < InspectorControls key = "inspector" >
430+ < div >
431+ { 'fetched' === this . state . route && (
432+ < Inspector
433+ edit = { this }
434+ state = { this . state }
435+ { ...this . props }
436+ />
437+ ) }
438+ </ div >
439+ </ InspectorControls >
431440 { 'home' === this . state . route && (
432441 < div className = { this . props . className } >
433442 < Placeholder
You can’t perform that action at this time.
0 commit comments