mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[SQLLab] Fix the usage of Redux DevTools Enhancer (#1278)
* Fix the usage of Redux DevTools Enhancer * Fix ESLint error
This commit is contained in:
parent
1e6e144d24
commit
79460abdd2
@ -67,9 +67,10 @@ export function addToArr(state, arrKey, obj) {
|
||||
export function enhancer() {
|
||||
let enhancerWithPersistState = compose(persistState());
|
||||
if (process.env.NODE_ENV === 'dev') {
|
||||
enhancerWithPersistState = compose(
|
||||
persistState(), window.devToolsExtension && window.devToolsExtension()
|
||||
);
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||
/* eslint-enable */
|
||||
enhancerWithPersistState = composeEnhancers(persistState());
|
||||
}
|
||||
return enhancerWithPersistState;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user