Skip to content

Commit

Permalink
fix(pivot-table-v2): Added forgotten translation pivot table v2 (#22840)
Browse files Browse the repository at this point in the history
(cherry picked from commit 60fe581)
  • Loading branch information
Always-prog authored and michael-s-molina committed Feb 22, 2024
1 parent c743822 commit c94a460
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c94a460

Please sign in to comment.