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:
parent
23f4c95d47
commit
83b48a901e
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue