Changed the class to use this.post.comments instead of the computed postComments so that issue are fixed.

This commit is contained in:
Hannes Heine 2020-08-07 13:17:14 +02:00
parent 7f8be5deab
commit def6a9d444

View File

@ -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: {