From 38b9819b6871878b887c748c67580adc36a42410 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Tue, 13 Dec 2016 03:10:57 -0600 Subject: [PATCH] Fix/remove Redux state mutation --- react/features/base/redux/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/redux/functions.js b/react/features/base/redux/functions.js index 6aecd65f4..9198e37b8 100644 --- a/react/features/base/redux/functions.js +++ b/react/features/base/redux/functions.js @@ -38,7 +38,7 @@ export function setStateProperties(target, source) { * property to the specified value. */ export function setStateProperty(state, property, value) { - return _setStateProperty(state, property, value, /* copyOnWrite */ false); + return _setStateProperty(state, property, value, /* copyOnWrite */ true); } /* eslint-disable max-params */