You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/07/24 16:06:49 UTC

(superset) 01/01: fix(plugin/chart/parallel-coordinate): prevent frontend crash with empty/undefined metrics when moving between pages quickly

This is an automated email from the ASF dual-hosted git repository.

hainenber pushed a commit to branch fix/coalesce-with-empty-metrics-when-transforming-props-in-parallel-coordinates-chart
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 5f6037c01cb64e0af6afe3af5ebfb6e3586c2cf7
Author: hainenber <do...@gmail.com>
AuthorDate: Fri Jul 24 23:05:58 2026 +0700

    fix(plugin/chart/parallel-coordinate): prevent frontend crash with empty/undefined metrics when moving between pages quickly
    
    Signed-off-by: hainenber <do...@gmail.com>
---
 .../legacy-plugin-chart-parallel-coordinates/src/transformProps.ts      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/plugins/legacy-plugin-chart-parallel-coordinates/src/transformProps.ts b/superset-frontend/plugins/legacy-plugin-chart-parallel-coordinates/src/transformProps.ts
index 94a065717ed..dfae55da1a1 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-parallel-coordinates/src/transformProps.ts
+++ b/superset-frontend/plugins/legacy-plugin-chart-parallel-coordinates/src/transformProps.ts
@@ -38,7 +38,7 @@ export default function transformProps(chartProps: ChartProps) {
     includeSeries,
     isDarkMode: isThemeDark(theme),
     linearColorScheme,
-    metrics: metrics.map((m: { label?: string } | string) =>
+    metrics: (metrics ?? []).map((m: { label?: string } | string) =>
       typeof m === 'string' ? m : m.label || m,
     ),
     colorMetric: secondaryMetric?.label || secondaryMetric,