mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
fix(pivot-table-v2): Added forgotten translation pivot table v2 (#22840)
(cherry picked from commit 60fe58196a)
This commit is contained in:
committed by
Michael S. Molina
parent
c743822031
commit
c94a4609bb
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user