fix: Drill to detail formatted val on TableChart (#21719)

This commit is contained in:
Michael S. Molina 2022-10-06 14:45:09 -03:00 committed by GitHub
parent 041c54e656
commit eb2a1345a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -633,11 +633,12 @@ export default function TableChart<D extends DataRecord = DataRecord>(
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],
});
}
});