decidim-comments/app/frontend/comments/comments.component.jsx in decidim-0.0.3 vs decidim-comments/app/frontend/comments/comments.component.jsx in decidim-0.0.4

- old
+ new

@@ -105,10 +105,17 @@ }).isRequired, orderBy: PropTypes.string.isRequired, reorderComments: PropTypes.func.isRequired }; +Comments.defaultProps = { + loading: false, + comments: null, + session: null, + commentableId: null +}; + /** * Wrap the Comments component with a GraphQL query and children * fragments. */ @@ -162,8 +169,12 @@ ]), commentableType: PropTypes.string.isRequired, options: PropTypes.shape({ arguable: PropTypes.bool }).isRequired +}; + +CommentsApplication.defaultProps = { + commentableId: null }; export default CommentsApplication;