summaryrefslogtreecommitdiff
path: root/src/reducers/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducers/objects.js')
-rw-r--r--src/reducers/objects.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/reducers/objects.js b/src/reducers/objects.js
index 801a5456..b75e9ae6 100644
--- a/src/reducers/objects.js
+++ b/src/reducers/objects.js
@@ -46,7 +46,13 @@ function objectWithId(type, getId) {
return Object.assign(
{},
state,
- {[action.objectId]: Object.assign(state[action.objectId], action.propObject)}
+ {
+ [action.objectId]: Object.assign(
+ {},
+ state[action.objectId],
+ action.propObject
+ )
+ }
);
} else if (action.type === ADD_ID_TO_STORE_OBJECT_LIST_PROP) {
return Object.assign(