Skip to content

Commit

Permalink
Fix: Double condition on or on block editor reducer (#42019)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Jun 28, 2022
1 parent 52e2742 commit 4e0893b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,12 @@ const withBlockTree =
const updatedBlockUids = [];
if ( action.fromRootClientId ) {
updatedBlockUids.push( action.fromRootClientId );
} else {
updatedBlockUids.push( '' );
}
if ( action.toRootClientId ) {
updatedBlockUids.push( action.toRootClientId );
}
if ( ! action.fromRootClientId || ! action.fromRootClientId ) {
updatedBlockUids.push( '' );
}
newState.tree = updateParentInnerBlocksInTree(
newState,
newState.tree,
Expand Down

0 comments on commit 4e0893b

Please sign in to comment.