mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix(Context-Menu): Fixing Context Menu for Table Chart with Html Content (#33791)
This commit is contained in:
@@ -52,6 +52,7 @@ import {
|
||||
tn,
|
||||
useTheme,
|
||||
SupersetTheme,
|
||||
extractTextFromHTML,
|
||||
} from '@superset-ui/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import {
|
||||
@@ -514,7 +515,9 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
const drillToDetailFilters: BinaryQueryObjectFilterClause[] = [];
|
||||
filteredColumnsMeta.forEach(col => {
|
||||
if (!col.isMetric) {
|
||||
const dataRecordValue = value[col.key];
|
||||
let dataRecordValue = value[col.key];
|
||||
dataRecordValue = extractTextFromHTML(dataRecordValue);
|
||||
|
||||
drillToDetailFilters.push({
|
||||
col: col.key,
|
||||
op: '==',
|
||||
@@ -535,7 +538,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
{
|
||||
col: cellPoint.key,
|
||||
op: '==',
|
||||
val: cellPoint.value as string | number | boolean,
|
||||
val: extractTextFromHTML(cellPoint.value),
|
||||
},
|
||||
],
|
||||
groupbyFieldName: 'groupby',
|
||||
|
||||
Reference in New Issue
Block a user