mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[explorev2] enabling redux dev tools (#1842)
This commit is contained in:
parent
d929bbfe30
commit
b6cba13293
@ -6,6 +6,7 @@ import { createStore, applyMiddleware, compose } from 'redux';
|
||||
import { Provider } from 'react-redux';
|
||||
import thunk from 'redux-thunk';
|
||||
import { now } from '../modules/dates';
|
||||
import { enhancer } from '../reduxUtils';
|
||||
|
||||
// jquery and bootstrap required to make bootstrap dropdown menu's work
|
||||
const $ = window.$ = require('jquery'); // eslint-disable-line
|
||||
@ -66,7 +67,7 @@ bootstrappedState.viz.form_data.filters =
|
||||
getFilters(bootstrappedState.viz.form_data, bootstrapData.datasource_type);
|
||||
|
||||
const store = createStore(exploreReducer, bootstrappedState,
|
||||
compose(applyMiddleware(thunk))
|
||||
compose(applyMiddleware(thunk), enhancer())
|
||||
);
|
||||
|
||||
ReactDOM.render(
|
||||
@ -75,4 +76,3 @@ ReactDOM.render(
|
||||
</Provider>,
|
||||
exploreViewContainer
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user