mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
Do not use persistState for explorev2 (#1894)
* Do not use persistState for explorev2 * Change enhancerWithPersistState to enhancer and function name to initEnhancer
This commit is contained in:
@@ -6,7 +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';
|
||||
import { initEnhancer } from '../reduxUtils';
|
||||
|
||||
// jquery and bootstrap required to make bootstrap dropdown menu's work
|
||||
const $ = window.$ = require('jquery'); // eslint-disable-line
|
||||
@@ -68,7 +68,7 @@ bootstrappedState.viz.form_data.filters =
|
||||
getFilters(bootstrappedState.viz.form_data, bootstrapData.datasource_type);
|
||||
|
||||
const store = createStore(exploreReducer, bootstrappedState,
|
||||
compose(applyMiddleware(thunk), enhancer())
|
||||
compose(applyMiddleware(thunk), initEnhancer(false))
|
||||
);
|
||||
|
||||
ReactDOM.render(
|
||||
|
||||
Reference in New Issue
Block a user