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

(cherry picked from commit 60fe58196a)
This commit is contained in:
Stepan
2024-02-22 11:45:14 -05:00
committed by Michael S. Molina
parent c743822031
commit c94a4609bb
@@ -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);