This is an automated email from the ASF dual-hosted git repository.
graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new a6d48d4 [fix] explore chart from dashboard missed slice title (#7046)
a6d48d4 is described below
commit a6d48d4052839286aec725d51303b3b2bf6e8dd4
Author: Grace Guo <[email protected]>
AuthorDate: Sat Mar 16 10:44:14 2019 -0700
[fix] explore chart from dashboard missed slice title (#7046)
---
superset/assets/src/dashboard/actions/dashboardState.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/superset/assets/src/dashboard/actions/dashboardState.js
b/superset/assets/src/dashboard/actions/dashboardState.js
index bdade32..135658d 100644
--- a/superset/assets/src/dashboard/actions/dashboardState.js
+++ b/superset/assets/src/dashboard/actions/dashboardState.js
@@ -236,7 +236,10 @@ export function addSliceToDashboard(id) {
),
);
}
- const form_data = selectedSlice.form_data;
+ const form_data = {
+ ...selectedSlice.form_data,
+ slice_id: selectedSlice.slice_id,
+ };
const newChart = {
...initChart,
id,