mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -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 {
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user