fix: posts/comments selector does nothing

This commit is contained in:
James Xylight committed 2025-07-25 15:42:47 -07:00
1 parent bea9e0b832
commit 5b9777cc7a
1 file changed
+1 -1
+1 -1
View File
@@ -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(