Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: Hide tags that were attached once by humans from AI tags

Mohamed Basseme03997ac5abb
diff --git a/apps/web/components/dashboard/tags/AllTagsView.tsx b/apps/web/components/dashboard/tags/AllTagsView.tsx
index 1efc6090..6b10d800 100644
--- a/apps/web/components/dashboard/tags/AllTagsView.tsx
+++ b/apps/web/components/dashboard/tags/AllTagsView.tsx
@@ -109,7 +109,9 @@ export default function AllTagsView({
(t) => (t.numBookmarksByAttachedType.human ?? 0) > 0,
);
const aiTags = allTags.filter(
- (t) => (t.numBookmarksByAttachedType.ai ?? 0) > 0,
+ (t) =>
+ (t.numBookmarksByAttachedType.human ?? 0) == 0 &&
+ (t.numBookmarksByAttachedType.ai ?? 0) > 0,
);
const emptyTags = allTags.filter((t) => t.numBookmarks === 0);