From 17ae0a3fafd806a5a533bf1d51a3ac708a8cf978 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 1 Sep 2017 16:42:13 +0200 Subject: Implement room name edit --- src/reducers/objects.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/reducers/objects.js') 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( -- cgit v1.2.3