Skip to content

Commit

Permalink
[#3137] Use state.datasource.type instead of state.datasource_type wh…
Browse files Browse the repository at this point in the history
…en rendering ControlPanelsContainer (#3138)
  • Loading branch information
FrederichCheng authored and mistercrunch committed Jul 17, 2017
1 parent 7b015fa commit 7abe2d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7abe2d5

Please sign in to comment.