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 83b48a9 fix(fetch-datasource-meta-data): Chart data is not showing
after in charts added by edit mode (#6980)
83b48a9 is described below
commit 83b48a901e01058212dcecfa9cdb23c1c005ba77
Author: ankursinghal2005 <[email protected]>
AuthorDate: Thu Mar 7 13:27:31 2019 +0530
fix(fetch-datasource-meta-data): Chart data is not showing after in charts
added by edit mode (#6980)
UIC-1046
---
superset/assets/src/dashboard/actions/datasources.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/assets/src/dashboard/actions/datasources.js
b/superset/assets/src/dashboard/actions/datasources.js
index 90a47dd..07c4f9b 100644
--- a/superset/assets/src/dashboard/actions/datasources.js
+++ b/superset/assets/src/dashboard/actions/datasources.js
@@ -46,7 +46,7 @@ export function fetchDatasourceMetadata(key) {
return SupersetClient.get({
endpoint: `/superset/fetch_datasource_metadata?datasourceKey=${key}`,
})
- .then(data => dispatch(setDatasource(data, key)))
+ .then(({ json }) => dispatch(setDatasource(json, key)))
.catch(response =>
getClientErrorObject(response).then(({ error }) =>
dispatch(fetchDatasourceFailed(error, key)),