Skip to content

Commit 400240c

Browse files
committed
fix: UsageCountDisplay
1 parent 4217c26 commit 400240c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/taxonomy/tag-list/UsageCountDisplay.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ const asTagListRowData = (row: Row<TreeRowData>): TagListRowData => (
1313

1414
const UsageCountDisplay = ({ row }: { row: Row<TreeRowData> }) => {
1515
const count = asTagListRowData(row).usageCount ?? 0;
16+
17+
if (count <= 0) {
18+
return null;
19+
}
20+
1621
return (
17-
count > 0 && (
18-
<Bubble expandable>
19-
{count}
20-
</Bubble>
21-
)
22+
<Bubble expandable>
23+
{count}
24+
</Bubble>
2225
);
2326
};
2427

0 commit comments

Comments
 (0)