mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: Drill to detail formatted val on TableChart (#21719)
This commit is contained in:
parent
041c54e656
commit
eb2a1345a8
@ -633,11 +633,12 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
|||||||
const filters: QueryObjectFilterClause[] = [];
|
const filters: QueryObjectFilterClause[] = [];
|
||||||
columnsMeta.forEach(col => {
|
columnsMeta.forEach(col => {
|
||||||
if (!col.isMetric) {
|
if (!col.isMetric) {
|
||||||
|
const dataRecordValue = value[col.key];
|
||||||
filters.push({
|
filters.push({
|
||||||
col: col.key,
|
col: col.key,
|
||||||
op: '==',
|
op: '==',
|
||||||
val: value[col.key] as string | number | boolean,
|
val: dataRecordValue as string | number | boolean,
|
||||||
formattedVal: String(value[col.key]),
|
formattedVal: formatColumnValue(col, dataRecordValue)[1],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user