Skip to content

Commit

Permalink
Chore: Update: Code Quality: Remove some editor store references from…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
jorgefilipecosta authored and youknowriad committed Mar 6, 2019
1 parent aec207c commit c294f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand All @@ -123,7 +123,7 @@ export function* selectPreviousBlock( clientId ) {
*/
export function* selectNextBlock( clientId ) {
const nextBlockClientId = yield select(
'core/editor',
'core/block-editor',
'getNextBlockClientId',
clientId
);
Expand Down

0 comments on commit c294f77

Please sign in to comment.