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