From def6a9d444994ee65940ae87b14346735ffeed2b Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Fri, 7 Aug 2020 13:17:14 +0200 Subject: [PATCH] Changed the class to use this.post.comments instead of the computed postComments so that issue are fixed. --- webapp/components/CommentList/CommentList.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/webapp/components/CommentList/CommentList.vue b/webapp/components/CommentList/CommentList.vue index 61801b35c..092da4681 100644 --- a/webapp/components/CommentList/CommentList.vue +++ b/webapp/components/CommentList/CommentList.vue @@ -36,16 +36,8 @@ export default { }, }, computed: { - postComments() { - return (this.post && this.post.comments) || [] - }, commentsCount() { - return ( - (this.post && - this.post.comments && - this.post.comments.filter((comment) => !comment.deleted && !comment.disabled).length) || - 0 - ) + return (this.post && this.post.comments && this.post.comments.filter(comment => !comment.deleted && !comment.disabled).length) || 0 }, }, methods: {