From eb2a1345a87dae968d1357279e6056a76988bd01 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Thu, 6 Oct 2022 14:45:09 -0300 Subject: [PATCH] fix: Drill to detail formatted val on TableChart (#21719) --- .../plugins/plugin-chart-table/src/TableChart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index 7455a4a53d..83cc9c0cc4 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -633,11 +633,12 @@ export default function TableChart( const filters: QueryObjectFilterClause[] = []; columnsMeta.forEach(col => { if (!col.isMetric) { + const dataRecordValue = value[col.key]; filters.push({ col: col.key, op: '==', - val: value[col.key] as string | number | boolean, - formattedVal: String(value[col.key]), + val: dataRecordValue as string | number | boolean, + formattedVal: formatColumnValue(col, dataRecordValue)[1], }); } });