mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
revert devtool alert (#1238)
This commit is contained in:
@@ -67,15 +67,9 @@ export function addToArr(state, arrKey, obj) {
|
||||
export function enhancer() {
|
||||
let enhancerWithPersistState = compose(persistState());
|
||||
if (process.env.NODE_ENV === 'dev') {
|
||||
if (window.devToolsExtension) {
|
||||
enhancerWithPersistState = compose(
|
||||
persistState(), window.devToolsExtension && window.devToolsExtension()
|
||||
);
|
||||
} else {
|
||||
console.warn('You may encounter errors unless' +
|
||||
'you have Redux Devtool Extension installed: ' +
|
||||
'http://github.com/zalmoxisus/redux-devtools-extension');
|
||||
}
|
||||
enhancerWithPersistState = compose(
|
||||
persistState(), window.devToolsExtension && window.devToolsExtension()
|
||||
);
|
||||
}
|
||||
return enhancerWithPersistState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user