summaryrefslogtreecommitdiff
path: root/frontend/src/redux/errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/redux/errors.js')
-rw-r--r--frontend/src/redux/errors.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/frontend/src/redux/errors.js b/frontend/src/redux/errors.js
index fdc2242d..ec1e30b6 100644
--- a/frontend/src/redux/errors.js
+++ b/frontend/src/redux/errors.js
@@ -19,10 +19,7 @@ const initialState = Immutable.from({
export default (state = initialState, action) => {
switch (action.type) {
case types.ERROR_RECEIVED_ON_WS:
- let error = Object.assign(
- { id: state.nextId, timestamp: new Date() },
- action.error
- );
+ let error = Object.assign({ id: state.nextId, timestamp: new Date() }, action.error);
let newState = state.set('nextId', state.nextId + 1);
newState = addErrorToHistory(newState, error);
return newState;
bgstack15