misc: Fix comment loading

This commit is contained in:
Xyphyn committed 2023-07-07 15:18:12 -07:00
1 parent 5f7741768b
commit 810d6011a5
2 files changed
+8 -12

No files matched your search

+4 -2
View File
@@ -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