From b86ce7439f6cb48eb44063f8812a3a19f897bee4 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 25 Feb 2019 20:04:18 +0100 Subject: [PATCH] Fix selector in document outline. (#14094) * Fix selector in document outline. * Import getBlocks from its new location. --- packages/editor/src/components/document-outline/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/document-outline/index.js b/packages/editor/src/components/document-outline/index.js index 63349419e43b69..b73af4a92d0874 100644 --- a/packages/editor/src/components/document-outline/index.js +++ b/packages/editor/src/components/document-outline/index.js @@ -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' ) );