Skip to content

Commit

Permalink
Revert "Add support for newId returned by onMutateBlock"
Browse files Browse the repository at this point in the history
This reverts commit 94740c6.
  • Loading branch information
avoinea committed Apr 7, 2021
1 parent 94740c6 commit c53bc1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/manage/Blocks/Group/EditBlockWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class EditBlockWrapper extends React.Component {
allowedBlocks,
block,
data,
onSelectBlock,
onDeleteBlock,
onMutateBlock,
selected,
Expand Down Expand Up @@ -150,8 +149,7 @@ class EditBlockWrapper extends React.Component {
<BlockChooser
onMutateBlock={(id, value) => {
this.setState({ addNewBlockOpened: false });
const newId = onMutateBlock(id, value);
newId && onSelectBlock(newId);
onMutateBlock(id, value);
}}
currentBlock={block}
allowedBlocks={allowedBlocks}
Expand Down

0 comments on commit c53bc1b

Please sign in to comment.