mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Changed the class to use this.post.comments instead of the computed postComments so that issue are fixed.
This commit is contained in:
parent
7f8be5deab
commit
def6a9d444
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user