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,
|
||||
})
|
||||
|
||||
const items = [...user.posts, ...user.comments]
|
||||
const items = [...(type == 'all' || type == 'posts' ? user.posts : []), ...(type == 'all' || type == 'comments' ? user.comments : []),]
|
||||
|
||||
if (sort == 'TopAll') {
|
||||
items.sort(
|
||||
|
||||
Reference in new issue
Block a user