Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix/remove Redux state mutation

Lyubomir Marinov38b9819b6871
diff --git a/react/features/base/redux/functions.js b/react/features/base/redux/functions.js
index 6aecd65f45..9198e37b8d 100644
--- a/react/features/base/redux/functions.js
+++ b/react/features/base/redux/functions.js
@@ -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 */