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.
pull/2105/head jitsi-meet_2599
paweldomas 8 years ago committed by Saúl Ibarra Corretgé
parent dc24782a2c
commit e520319af2
  1. 2
      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;

Loading…
Cancel
Save