From f6a3ed23f8fe8b4fac1467621e4b2e8d855a6eb9 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" Date: Thu, 6 Oct 2022 11:42:35 -0300 Subject: [PATCH] fix: Drill to detail formatted val on TableChart --- .../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 7455a4a53da96..83cc9c0cc41ad 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], }); } });