Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal (#4277)

* Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal

* Fix test

* lint
This commit is contained in:
Maxime Beauchemin 2018-01-24 16:08:48 -08:00 committed by GitHub
parent ff2f85f39b
commit 914480ad3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ function mapStateToProps(state) {
return { return {
datasource: state.datasource, datasource: state.datasource,
errorMessage: state.errorMessage, errorMessage: state.errorMessage,
timeout: state.common ? state.common.SUPERSET_WEBSERVER_TIMEOUT : null, timeout: state.common ? state.common.conf.SUPERSET_WEBSERVER_TIMEOUT : null,
}; };
} }

View File

@ -27,7 +27,7 @@ describe('VisualizeModal', () => {
const mockStore = configureStore(middlewares); const mockStore = configureStore(middlewares);
const initialState = sqlLabReducer({}, {}); const initialState = sqlLabReducer({}, {});
initialState.common = { initialState.common = {
SUPERSET_WEBSERVER_TIMEOUT: 45, conf: { SUPERSET_WEBSERVER_TIMEOUT: 45 },
}; };
const store = mockStore(initialState); const store = mockStore(initialState);
const mockedProps = { const mockedProps = {