Skip to content

Commit

Permalink
Fix passing null to htmlify
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Mar 18, 2020
1 parent 6ec286b commit a0e22df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MarkdownContentDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function typographer(children) {
}

function htmlify(children) {
return children.map(child => {
return toChildArray(children).map(child => {
if (typeof child !== 'string') return child

return h(ContentDisplay, {
Expand Down

0 comments on commit a0e22df

Please sign in to comment.