summaryrefslogtreecommitdiff
path: root/src/reducers/objects.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-01 16:42:13 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:56 +0200
commit17ae0a3fafd806a5a533bf1d51a3ac708a8cf978 (patch)
treec3687bd08891ef3698f4773e44a6920856229dfe /src/reducers/objects.js
parenteea529f57e3ee39d2f492062688b2848ced0a747 (diff)
Implement room name edit
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(