mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +00:00
feat!: pass datasource_type and datasource_id to form_data (#19981)
* pass datasource_type and datasource_id to form_data * add datasource_type to delete command * add datasource_type to delete command * fix old keys implementation * add more tests
This commit is contained in:
committed by
GitHub
parent
a813528958
commit
32bb1ce3ff
@@ -189,9 +189,9 @@ class DatasourceControl extends React.PureComponent {
|
||||
const isMissingDatasource = datasource.id == null;
|
||||
let isMissingParams = false;
|
||||
if (isMissingDatasource) {
|
||||
const datasetId = getUrlParam(URL_PARAMS.datasetId);
|
||||
const datasourceId = getUrlParam(URL_PARAMS.datasourceId);
|
||||
const sliceId = getUrlParam(URL_PARAMS.sliceId);
|
||||
if (!datasetId && !sliceId) {
|
||||
if (!datasourceId && !sliceId) {
|
||||
isMissingParams = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user