[#3137] Use state.datasource.type instead of state.datasource_type when rendering ControlPanelsContainer (#3138)

This commit is contained in:
Shao-Yen "Fred" Cheng 2017-07-16 21:04:34 -07:00 committed by Maxime Beauchemin
parent 7b015faae9
commit 7abe2d5eee
2 changed files with 2 additions and 2 deletions

View File

@ -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,
};
}

View File

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