Skip to content

Commit

Permalink
Fix selector in document outline. (#14094)
Browse files Browse the repository at this point in the history
* Fix selector in document outline.

* Import getBlocks from its new location.
  • Loading branch information
afercia authored and youknowriad committed Mar 6, 2019
1 parent e5fe4f8 commit b86ce74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/components/document-outline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export const DocumentOutline = ( { blocks = [], title, onSelect, isTitleSupporte

export default compose(
withSelect( ( select ) => {
const { getEditedPostAttribute, getBlocks } = select( 'core/block-editor' );
const { getBlocks } = select( 'core/block-editor' );
const { getEditedPostAttribute } = select( 'core/editor' );
const { getPostType } = select( 'core' );
const postType = getPostType( getEditedPostAttribute( 'type' ) );

Expand Down

0 comments on commit b86ce74

Please sign in to comment.