Skip to content

Commit

Permalink
Ensure UPDATE_BLOCK reducer maintains tree structure for updated block
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 29, 2021
1 parent ff74d5f commit 04d1853
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ const withBlockTree = ( reducer ) => ( state = {}, action ) => {
{
...newState.tree,
[ action.clientId ]: {
...newState.tree[ action.clientId ],
...newState.byClientId[ action.clientId ],

This comment has been minimized.

Copy link
@youknowriad

youknowriad Oct 29, 2021

Contributor

It makes me wonder whether this line is necessary at all.

attributes: newState.attributes[ action.clientId ],
},
Expand Down

0 comments on commit 04d1853

Please sign in to comment.