summaryrefslogtreecommitdiff
path: root/app/client/live/reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 13:23:19 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 13:23:19 +0200
commit0b4241c0a8e0d3fa9c130d3ca6b3d64cdda43cac (patch)
treeb9b202549d7851937cfa86a4749af8bbd96afc94 /app/client/live/reducer.js
parent9b66e84a72eb1cf0a8caf19450f348f194c21d4f (diff)
toggles and layout adjust
Diffstat (limited to 'app/client/live/reducer.js')
-rw-r--r--app/client/live/reducer.js3
1 files changed, 3 insertions, 0 deletions
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,