Skip to content

Commit

Permalink
Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal (#4277)
Browse files Browse the repository at this point in the history
* Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal

* Fix test

* lint
  • Loading branch information
mistercrunch authored Jan 25, 2018
1 parent ff2f85f commit 914480a
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 @@ -294,7 +294,7 @@ function mapStateToProps(state) {
return {
datasource: state.datasource,
errorMessage: state.errorMessage,
timeout: state.common ? state.common.SUPERSET_WEBSERVER_TIMEOUT : null,
timeout: state.common ? state.common.conf.SUPERSET_WEBSERVER_TIMEOUT : null,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('VisualizeModal', () => {
const mockStore = configureStore(middlewares);
const initialState = sqlLabReducer({}, {});
initialState.common = {
SUPERSET_WEBSERVER_TIMEOUT: 45,
conf: { SUPERSET_WEBSERVER_TIMEOUT: 45 },
};
const store = mockStore(initialState);
const mockedProps = {
Expand Down

0 comments on commit 914480a

Please sign in to comment.