mirror of https://github.com/apache/superset.git
[#3137] Use state.datasource.type instead of state.datasource_type when rendering ControlPanelsContainer (#3138)
This commit is contained in:
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,
|
||||
|
|
Loading…
Reference in New Issue