Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply the attributes of blockB into blockA
  • Loading branch information
Jackie6 committed Apr 2, 2019
commit 695a528d150e1d8096d36230a275211c8f3c1b86
3 changes: 2 additions & 1 deletion packages/block-editor/src/store/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export default {
{
...blockA,
attributes: {
...( blockA.attributes.content.length === 0 ? blockB.attributes : blockA.attributes ),
...blockA.attributes,
...blockB.attributes,
...updatedAttributes,
},
},
Expand Down