group by fix

This commit is contained in:
Jan Prochazka
2020-06-21 20:04:00 +02:00
parent e1eb8ffd56
commit 9cd2e68f0b
3 changed files with 51 additions and 26 deletions

View File

@@ -41,7 +41,9 @@ export default function ColumnHeaderControl({ column, setSort, onResize, order,
return (
<HeaderDiv>
<LabelDiv>
{grouping && <GroupingLabel>{grouping.toLowerCase()}:</GroupingLabel>}
{grouping && (
<GroupingLabel>{grouping == 'COUNT DISTINCT' ? 'distinct' : grouping.toLowerCase()}:</GroupingLabel>
)}
<ColumnLabel {...column} />
{order == 'ASC' && (