From e520319af24093c523b385eca5a39942f43066e5 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 26 Oct 2017 09:50:00 -0500 Subject: [PATCH] fix(redux/functions): fix typo The intention of the code is (1) to return target if none of the setters lead to an actual change, (2) to not modify target, and (3) to do it with a 1 copyOnWrite at most. --- 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 5bba4fa58..687eb06f4 100644 --- a/react/features/base/redux/functions.js +++ b/react/features/base/redux/functions.js @@ -19,7 +19,7 @@ export function assign(target: Object, source: Object) { let t = target; for (const property in source) { // eslint-disable-line guard-for-in - t = set(t, property, source[property], t === target); + t = _set(t, property, source[property], t === target); } return t;