From 5dcbba4c670b5fdd8b3b9d07c032ff62d0dbb40b Mon Sep 17 00:00:00 2001 From: "ankur.singhal" Date: Tue, 5 Mar 2019 22:34:15 +0530 Subject: [PATCH] fix(fetch-datasource-meta-data): Chart data is not showing after in charts added by edit mode 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 90a47dd0c5c8..07c4f9b524af 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)),