Skip to content

Commit

Permalink
handle empty content
Browse files Browse the repository at this point in the history
  • Loading branch information
ambethia committed Aug 4, 2020
1 parent 63ead4f commit 2cde489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PersonModal.js
Expand Up @@ -32,7 +32,7 @@ const PersonModal = ({ person, content, returnTo }) => (
<div
className="content"
dangerouslySetInnerHTML={{
__html: content.childMarkdownRemark.html
__html: content ? content.childMarkdownRemark.html : '',
}}
/>
<nav className="level is-mobile">
Expand Down

0 comments on commit 2cde489

Please sign in to comment.