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: {
|
computed: {
|
||||||
postComments() {
|
|
||||||
return (this.post && this.post.comments) || []
|
|
||||||
},
|
|
||||||
commentsCount() {
|
commentsCount() {
|
||||||
return (
|
return (this.post && this.post.comments && this.post.comments.filter(comment => !comment.deleted && !comment.disabled).length) || 0
|
||||||
(this.post &&
|
|
||||||
this.post.comments &&
|
|
||||||
this.post.comments.filter((comment) => !comment.deleted && !comment.disabled).length) ||
|
|
||||||
0
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user