Skip to content

Commit

Permalink
don't error on null/undefined props, refs jenseng#11
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng committed May 9, 2015
1 parent 14cdad8 commit 0c617cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComponentInterpolator.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var ComponentInterpolator = React.createClass({
`<ComponentInterpolator> expected '${token}' placeholder value, none found`
);
child = this.props[token];
child = child.type ? cloneWithProps(child, {key: tokens.length}) : child;
child = child && child.type ? cloneWithProps(child, {key: tokens.length}) : child;
children.push(child);
} else {
children.push(token);
Expand Down

0 comments on commit 0c617cc

Please sign in to comment.