Skip to content

Commit

Permalink
fix: Incorrect counts for tags in the AllTags page. Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Apr 3, 2024
1 parent fd7d87e commit 5ef2efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/trpc/routers/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export const tagsAppRouter = router({
},
};
}
acc[row.id].count++;
acc[row.id].countAttachedBy[row.attachedBy]!++;
acc[row.id].count += row.count;
acc[row.id].countAttachedBy[row.attachedBy]! += row.count;
return acc;
},
{},
Expand Down

0 comments on commit 5ef2efe

Please sign in to comment.