Skip to content

Commit

Permalink
Change data.id of the block if customId is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Mar 18, 2021
1 parent 8ed2b0a commit ab9e3e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BlockStyleWrapper/BlockStyleWrapperEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const BlockStyleWrapperEdit = (props) => {
...data,
...(id === 'align' ? { align: value } : {}),
...(id === 'size' ? { size: value } : {}),
...(id === 'customId' ? { id: value } : {}),
styles: {
...data?.styles,
[id]: value,
Expand Down

0 comments on commit ab9e3e7

Please sign in to comment.