Skip to content

Commit

Permalink
fix adding new blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Medesan committed Jan 12, 2021
1 parent 5151e33 commit ec3a37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/manage/Blocks/Group/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const Edit = (props) => {
const charCountTemp = blocksObject[blockId]?.text?.blocks[0]?.text
? blocksObject[blockId].text.blocks[0].text.length
: blocksObject[blockId]['@type'] === 'group'
? countTextInBlocks(blocksObject[blockId]?.data?.blocks)
? blocksObject[blockId]?.data?.blocks
? countTextInBlocks(blocksObject[blockId]?.data?.blocks)
: 0
: 0;
groupCharCount = groupCharCount + charCountTemp;
});
Expand Down

0 comments on commit ec3a37a

Please sign in to comment.