From 0b4241c0a8e0d3fa9c130d3ca6b3d64cdda43cac Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 13:23:19 +0200 Subject: toggles and layout adjust --- app/client/live/reducer.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/client/live/reducer.js') diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js index 6e18624..93fc448 100644 --- a/app/client/live/reducer.js +++ b/app/client/live/reducer.js @@ -11,6 +11,9 @@ const liveReducer = (state = liveInitialState, action) => { switch(action.type) { case 'LOAD_PARAMS': + if (! action.opt || ! Object.keys(action.opt).length) { + return state + } return { ...state, loading: false, -- cgit v1.2.3-70-g09d2