You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/08/04 17:13:42 UTC

[superset] 09/16: fix(legacy-chart): corrupted raw chart data (#24850)

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

michaelsmolina pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 29528e9783c99bc59ee4b70d0dbf139a62971e54
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)
    
    (cherry picked from commit 1c5971d3afb70a338444c41943ff90c3a9c03ec3)
---
 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;