Skip to content

Commit

Permalink
fix(pvt2): removed metric translate (due to another PR apache#20078)
Browse files Browse the repository at this point in the history
  • Loading branch information
Always-prog committed Jan 24, 2023
1 parent b6f382f commit 5bf6ec4
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ import { PivotData, flatKey } from './utilities';
import { Styles } from './Styles';

const parseLabel = value => {
if (typeof value === 'string'){
if (value === 'metric') return t('metric');
return value;
}
if (typeof value === 'number') {
if (typeof value === 'number' || typeof value === 'string') {
return value;
}
return String(value);
Expand Down

0 comments on commit 5bf6ec4

Please sign in to comment.