fix: properly load comments when sorting (#30)

Need to set type_ to 'All' when calling getComments().  Otherwise,
trying sort the comments on a post by "Top" or "New" will refresh
without any comments.
This commit is contained in:
Peter Bui authored and GitHub committed 2023-07-26 21:14:44 -07:00
1 parent ff2d424a99
commit 54c03b96dc
1 file changed
+2
@@ -61,6 +61,7 @@
max_depth: 3,
page: commentsPage,
limit: 25,
type_: 'All',
post_id: data.post.post_view.post.id,
sort: commentSort,
})
@@ -203,6 +204,7 @@
max_depth: 3,
page: ++commentsPage,
limit: 25,
type_: 'All',
post_id: data.post.post_view.post.id,
})