Skip to content

Commit

Permalink
Merge pull request #9 from kahyoung/master
Browse files Browse the repository at this point in the history
 fix: can now conditionally render children
  • Loading branch information
Ben Taylor authored Oct 30, 2018
2 parents f9cb1a8 + c90233f commit fa8e613
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/JSONLDAbstractNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class JSONLDAbstractNode extends React.Component {
};

getChildJSON(child, isCollection) {
if(!child) return '';

const ChildClass = child.type;
let { children, type, id, parentID, ...schema } = child.props;
if (!!parentID) schema = {'@id': parentID };
Expand Down

0 comments on commit fa8e613

Please sign in to comment.