From 179b75a77ab507163ba8afabd2368dd6d5b1aca5 Mon Sep 17 00:00:00 2001 From: Friedjoff Trautwein Date: Tue, 7 Jul 2020 09:43:34 +0200 Subject: [PATCH] fix: avoid missing Redux devtools --- src/store/enhancers/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/store/enhancers/index.js b/src/store/enhancers/index.js index 9a6dd707..68bec9af 100644 --- a/src/store/enhancers/index.js +++ b/src/store/enhancers/index.js @@ -4,9 +4,11 @@ import querySync from './querySync'; import projection from './projection'; const composeEnhancers = - window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ - trace: true, - traceLimit: 25, - }) || compose; + (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && + window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ + trace: true, + traceLimit: 25, + })) || + compose; export default composeEnhancers(querySync, projection);