fix(fetch-datasource-meta-data): Chart data is not showing after in charts added by edit mode (#6980)

UIC-1046
This commit is contained in:
ankursinghal2005 2019-03-07 13:27:31 +05:30 committed by Grace Guo
parent 23f4c95d47
commit 83b48a901e
1 changed files with 1 additions and 1 deletions

View File

@ -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)),