From 5bf6ec4a0539eedadfed67970b99b5da9c5ed726 Mon Sep 17 00:00:00 2001 From: Stepan Date: Tue, 24 Jan 2023 20:12:41 +0300 Subject: [PATCH] fix(pvt2): removed metric translate (due to another PR https://github.com/apache/superset/pull/20078) --- .../src/react-pivottable/TableRenderers.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx b/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx index c1183560339ca..b42301a7e4391 100644 --- a/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx +++ b/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx @@ -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);