Fix/remove Redux state mutation
This commit is contained in:
parent
9a49a01713
commit
38b9819b68
|
@ -38,7 +38,7 @@ export function setStateProperties(target, source) {
|
|||
* <tt>property</tt> to the specified <tt>value</tt>.
|
||||
*/
|
||||
export function setStateProperty(state, property, value) {
|
||||
return _setStateProperty(state, property, value, /* copyOnWrite */ false);
|
||||
return _setStateProperty(state, property, value, /* copyOnWrite */ true);
|
||||
}
|
||||
|
||||
/* eslint-disable max-params */
|
||||
|
|
Loading…
Reference in New Issue