mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal (#4277)
* Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal * Fix test * lint
This commit is contained in:
parent
ff2f85f39b
commit
914480ad3c
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user