We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf16d8 commit b42060cCopy full SHA for b42060c
superset-frontend/plugins/plugin-chart-echarts/src/utils/eventHandlers.ts
@@ -54,7 +54,9 @@ const getCrossFilterDataMask =
54
values = [value];
55
}
56
57
- const groupbyValues = values.map(value => labelMap[value]);
+ const groupbyValues = values
58
+ .map(value => labelMap[value])
59
+ .filter(Boolean) as string[][];
60
61
return {
62
dataMask: {
@@ -122,6 +124,9 @@ export const contextMenuEventHandler =
122
124
const drillFilters: BinaryQueryObjectFilterClause[] = [];
123
125
if (groupby.length > 0) {
126
const values = labelMap[e.name];
127
+ if (!values) {
128
+ return;
129
+ }
130
groupby.forEach((dimension, i) => {
131
drillFilters.push({
132
col: dimension,
0 commit comments