aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/.babelrc2
-rw-r--r--web/src/js/reducers/eventLog.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/web/.babelrc b/web/.babelrc
index 5dd7708c..e2d67e33 100644
--- a/web/.babelrc
+++ b/web/.babelrc
@@ -1,4 +1,4 @@
{
"presets": ["es2015", "react"],
- "plugins": ["transform-class-properties"]
+ "plugins": ["transform-class-properties", "transform-object-rest-spread"]
} \ No newline at end of file
diff --git a/web/src/js/reducers/eventLog.js b/web/src/js/reducers/eventLog.js
index 169cd306..9d078c14 100644
--- a/web/src/js/reducers/eventLog.js
+++ b/web/src/js/reducers/eventLog.js
@@ -10,9 +10,10 @@ const defaultVisibility = {
const visibilityFilter = (state = defaultVisibility, action) => {
switch (action.type) {
case TOGGLE_EVENTLOG_FILTER:
- return Object.assign({}, state, {
+ return {
+ ...state,
[action.filter]: !state[action.filter]
- });
+ };
default:
return state;
}