mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
[#3137] Use state.datasource.type instead of state.datasource_type when rendering ControlPanelsContainer (#3138)
This commit is contained in:
committed by
Maxime Beauchemin
parent
7b015faae9
commit
7abe2d5eee
@@ -341,7 +341,7 @@ function mapStateToProps(state) {
|
||||
table_name: formData.datasource_name,
|
||||
viz_type: formData.viz_type,
|
||||
triggerRender: state.triggerRender,
|
||||
datasourceType: state.datasource_type,
|
||||
datasourceType: state.datasource.type,
|
||||
datasourceId: state.datasource_id,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ function mapStateToProps(state) {
|
||||
const form_data = getFormDataFromControls(state.controls);
|
||||
return {
|
||||
chartStatus: state.chartStatus,
|
||||
datasource_type: state.datasource_type,
|
||||
datasource_type: state.datasource.type,
|
||||
controls: state.controls,
|
||||
form_data,
|
||||
standalone: state.standalone,
|
||||
|
||||
Reference in New Issue
Block a user