app/frontend/comments/comments.component.tsx in decidim-comments-0.11.2 vs app/frontend/comments/comments.component.tsx in decidim-comments-0.12.0.pre

- old
+ new

@@ -35,10 +35,10 @@ comments: [] } }; public render() { - const { commentable: { comments, totalCommentsCount }, reorderComments, orderBy, loading } = this.props; + const { commentable: { comments, totalCommentsCount = 0 }, reorderComments, orderBy, loading } = this.props; let commentClasses = "comments"; let commentHeader = I18n.t("components.comments.title", { count: totalCommentsCount }); if (loading) { commentClasses += " loading-comments";