You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kg...@apache.org on 2023/04/24 15:43:05 UTC
[superset] branch master updated: fix: Context menu crashing when there is no dimension in Echarts Series charts (#23797)
This is an automated email from the ASF dual-hosted git repository.
kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d4c0ae34f4 fix: Context menu crashing when there is no dimension in Echarts Series charts (#23797)
d4c0ae34f4 is described below
commit d4c0ae34f4e23d1172d2ae3335f73873b0b37c1e
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Mon Apr 24 17:42:56 2023 +0200
fix: Context menu crashing when there is no dimension in Echarts Series charts (#23797)
---
.../plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx
index 516255de0c..202d627569 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx
@@ -205,7 +205,7 @@ export default function EchartsTimeseries({
const pointerEvent = eventParams.event.event;
const values = [
...(eventParams.name ? [eventParams.name] : []),
- ...labelMap[seriesName],
+ ...(labelMap[seriesName] ?? []),
];
if (data && xAxis.type === AxisType.time) {
drillToDetailFilters.push({