fix: posts/comments selector does nothing
This commit is contained in:
1 file changed
+1
-1
@@ -17,7 +17,7 @@ export async function load({ url, fetch, parent }) {
|
|||||||
sort: sort,
|
sort: sort,
|
||||||
})
|
})
|
||||||
|
|
||||||
const items = [...user.posts, ...user.comments]
|
const items = [...(type == 'all' || type == 'posts' ? user.posts : []), ...(type == 'all' || type == 'comments' ? user.comments : []),]
|
||||||
|
|
||||||
if (sort == 'TopAll') {
|
if (sort == 'TopAll') {
|
||||||
items.sort(
|
items.sort(
|
||||||
|
|||||||
Reference in new issue
Block a user