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 <[email protected]>
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 <[email protected]>
---
 .../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,

Reply via email to