From c294f77cebab08f9bf4e0e7579d3cd5df5001dc0 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Fri, 1 Mar 2019 16:24:57 +0000 Subject: [PATCH] Chore: Update: Code Quality: Remove some editor store references from block-editor (#14161) We missed to update the editor references from selectPreviousBlock, and selectNextBlock. ## Tests I added multiple blocks, I verified that when I remove a block the previous block still gets selected. --- packages/block-editor/src/store/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/store/actions.js b/packages/block-editor/src/store/actions.js index 382a25f438d347..a94a526f4a5daf 100644 --- a/packages/block-editor/src/store/actions.js +++ b/packages/block-editor/src/store/actions.js @@ -107,7 +107,7 @@ export function selectBlock( clientId, initialPosition = null ) { */ export function* selectPreviousBlock( clientId ) { const previousBlockClientId = yield select( - 'core/editor', + 'core/block-editor', 'getPreviousBlockClientId', clientId ); @@ -123,7 +123,7 @@ export function* selectPreviousBlock( clientId ) { */ export function* selectNextBlock( clientId ) { const nextBlockClientId = yield select( - 'core/editor', + 'core/block-editor', 'getNextBlockClientId', clientId );