diff --git a/ComponentInterpolator.js b/ComponentInterpolator.js index 0134480..9ce814e 100644 --- a/ComponentInterpolator.js +++ b/ComponentInterpolator.js @@ -107,7 +107,7 @@ var ComponentInterpolator = React.createClass({ ` 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);