Skip to content

Commit

Permalink
fix: route block with empty content, close #90
Browse files Browse the repository at this point in the history
  • Loading branch information
nei1ee committed Jun 17, 2023
1 parent 47e3483 commit e7ff283
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/core/src/customBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ export function parseCustomBlock(
)
}
}
if (content) {
return {
attr,
content,
}
return {
attr,
content: content ?? {},
}
}

Expand Down

0 comments on commit e7ff283

Please sign in to comment.