Skip to content

Commit

Permalink
Merge pull request #125 from khaaleoo/fix-#124-func-groupBlockContent…
Browse files Browse the repository at this point in the history
…-undefined-content

fix: handle nonexistent field: value
  • Loading branch information
tobiaslins authored Oct 28, 2024
2 parents 2e3f8e2 + 6099de6 commit da9c9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const groupBlockContent = (blockMap: BlockMapType): string[][] => {
let index = -1;

Object.keys(blockMap).forEach(id => {
blockMap[id].value.content?.forEach(blockId => {
blockMap[id].value?.content?.forEach(blockId => {
const blockType = blockMap[blockId]?.value?.type;

if (blockType && blockType !== lastType) {
Expand Down

0 comments on commit da9c9fc

Please sign in to comment.