fix(pivot-table-v2): Added forgotten translation pivot table v2 (#22840)

This commit is contained in:
Stepan
2024-02-15 20:16:02 +03:00
committed by GitHub
parent 506ea756ad
commit 60fe58196a

View File

@@ -24,7 +24,11 @@ import { PivotData, flatKey } from './utilities';
import { Styles } from './Styles';
const parseLabel = value => {
if (typeof value === 'number' || typeof value === 'string') {
if (typeof value === 'string') {
if (value === 'metric') return t('metric');
return value;
}
if (typeof value === 'number') {
return value;
}
return String(value);