misc: Fix comment loading
This commit is contained in:
1 parent
5f7741768b
commit
810d6011a5
2 files changed
+8
-12
No files matched your search
@@ -162,10 +162,12 @@
|
||||
post_id: data.post.post_view.post.id,
|
||||
})
|
||||
|
||||
if (loadedComments.comments.length > 0) {
|
||||
if (comments.comments == loadedComments.comments) {
|
||||
comments.comments = [
|
||||
...comments.comments,
|
||||
...loadedComments.comments,
|
||||
...loadedComments.comments.filter(
|
||||
(comment) => !comments.comments.includes(comment)
|
||||
),
|
||||
]
|
||||
} else {
|
||||
moreComments = false
|
||||
|
||||
Reference in new issue
Block a user