Skip to content

Commit

Permalink
fix: Hide tags that were attached once by humans from AI tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 2, 2025
1 parent d95cebf commit e03997a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/components/dashboard/tags/AllTagsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e03997a

Please sign in to comment.