Added fix for returning a new array

This commit is contained in:
Dan Zajdband
2016-11-15 12:37:05 -05:00
parent e53ac55e6b
commit 27261cc515
+1 -1
View File
@@ -43,7 +43,7 @@ export default function community (state = initialState, action) {
const idx = commenters.findIndex(el => el.id === action.id);
commenters[idx].roles[0] = action.role;
return state.set('commenters', commenters);
return state.set('commenters', commenters.map(id => id));
case SORT_UPDATE :
return state
.set('field', action.sort.field)