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

Commit

Permalink
Refs #126375 pass blocksConfig to TextBlockEdit for block config chan…
Browse files Browse the repository at this point in the history
…ges:

- if we have slots we want to be able to modify a block restricted state
  and we need to affect it when we try to add a new block
  • Loading branch information
ichim-david committed Apr 2, 2021
1 parent 3f533ec commit 6641388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blocks/Text/TextBlockEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const DEBUG = false;
const TextBlockEdit = (props) => {
const {
block,
blocksConfig,
data,
detached,
index,
Expand Down Expand Up @@ -267,6 +268,7 @@ const TextBlockEdit = (props) => {
onMutateBlock(...args);
setAddNewBlockOpened(false);
}}
blocksConfig={blocksConfig}
currentBlock={block}
allowedBlocks={allowedBlocks}
/>
Expand Down

0 comments on commit 6641388

Please sign in to comment.