Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Revert "Add support for newId returned by onMutateBlock"
Browse files Browse the repository at this point in the history
This reverts commit 0f806b5.
  • Loading branch information
avoinea committed Apr 7, 2021
1 parent 1a64495 commit 85de73b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/blocks/Text/TextBlockEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,8 @@ const TextBlockEdit = (props) => {
{addNewBlockOpened && (
<BlockChooser
onMutateBlock={(...args) => {
onMutateBlock(...args);
setAddNewBlockOpened(false);
const newId = onMutateBlock(...args);
newId && onSelectBlock(newId);
}}
currentBlock={block}
allowedBlocks={allowedBlocks}
Expand Down

0 comments on commit 85de73b

Please sign in to comment.