Skip to content

Commit 4291014

Browse files
author
vvo
committed
fix(Template): add default value for template
So that template: null or undefined always renders an empty string
1 parent 1207ba7 commit 4291014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/Template.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Template.propTypes = {
2525
};
2626

2727
Template.defaultProps = {
28-
data: {}
28+
data: {},
29+
template: ''
2930
};
3031

3132
module.exports = Template;

0 commit comments

Comments
 (0)