Skip to content

Commit

Permalink
fix(Template): add default value for template
Browse files Browse the repository at this point in the history
So that template: null or undefined always renders an empty string
  • Loading branch information
vvo committed Sep 24, 2015
1 parent 1207ba7 commit 4291014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Template.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Template.propTypes = {
};

Template.defaultProps = {
data: {}
data: {},
template: ''
};

module.exports = Template;

0 comments on commit 4291014

Please sign in to comment.