From 5b9777cc7abc2ec6d4f7962084f30474ea9bd2a7 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Fri, 25 Jul 2025 15:38:54 -0700 Subject: [PATCH] fix: posts/comments selector does nothing --- src/routes/profile/user/+page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/profile/user/+page.ts b/src/routes/profile/user/+page.ts index 729a287c..e345078e 100644 --- a/src/routes/profile/user/+page.ts +++ b/src/routes/profile/user/+page.ts @@ -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(