A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Tag filtering and sorting
MohamedBassemc2e7ae299bb9
diff --git a/packages/web/app/dashboard/tags/page.tsx b/packages/web/app/dashboard/tags/page.tsxindex 687599c5..d76a7f91 100644--- a/packages/web/app/dashboard/tags/page.tsx+++ b/packages/web/app/dashboard/tags/page.tsx@@ -23,7 +23,7 @@ export default async function TagsPage() {redirect("/");}- const tags = await prisma.bookmarkTags.findMany({+ let tags = await prisma.bookmarkTags.findMany({where: {userId: session.user.id,},@@ -37,7 +37,7 @@ export default async function TagsPage() {});// Sort tags by usage desc- tags+ tags = tags.filter((t) => t._count.bookmarks > 0).sort((a, b) => b._count.bookmarks - a._count.bookmarks);