Skip to content

Commit 2e31e8f

Browse files
Copilothotlong
andcommitted
fix: remove duplicate count display in GroupRow header
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 53ff697 commit 2e31e8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/plugin-grid/src/GroupRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const GroupRow: React.FC<GroupRowProps> = ({
5252
? <ChevronRight className="h-4 w-4 shrink-0" />
5353
: <ChevronDown className="h-4 w-4 shrink-0" />}
5454
<span className="group-label">{label}</span>
55-
<span className="ml-1 text-xs text-muted-foreground group-count">({count})</span>
5655
{aggregations && aggregations.length > 0 && (
5756
<span className="ml-2 text-xs text-muted-foreground group-aggregations">
5857
{aggregations.map((agg) => (
@@ -62,7 +61,7 @@ export const GroupRow: React.FC<GroupRowProps> = ({
6261
))}
6362
</span>
6463
)}
65-
<span className="ml-auto text-xs text-muted-foreground">{count}</span>
64+
<span className="ml-auto text-xs text-muted-foreground group-count">({count})</span>
6665
</button>
6766
{!collapsed && children}
6867
</div>

0 commit comments

Comments
 (0)