You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/08/01 16:49:11 UTC

[superset] branch master updated: fix(legacy-chart): corrupted raw chart data (#24850)

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

johnbodley 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 1c5971d3af fix(legacy-chart): corrupted raw chart data (#24850)
1c5971d3af is described below

commit 1c5971d3afb70a338444c41943ff90c3a9c03ec3
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Tue Aug 1 09:49:04 2023 -0700

    fix(legacy-chart): corrupted raw chart data (#24850)
---
 superset-frontend/plugins/legacy-preset-chart-nvd3/src/transformProps.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/transformProps.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/transformProps.js
index cf54d4c9f7..4287cd64c4 100644
--- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/transformProps.js
+++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/transformProps.js
@@ -111,6 +111,7 @@ export default function transformProps(chartProps) {
   const data = Array.isArray(rawData)
     ? rawData.map(row => ({
         ...row,
+        values: row.values.map(value => ({ ...value })),
         key: formatLabel(row.key, datasource.verboseMap),
       }))
     : rawData;