Pārlūkot izejas kodu

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.
j8
paweldomas 8 gadus atpakaļ
vecāks
revīzija
e520319af2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      react/features/base/redux/functions.js

+ 1
- 1
react/features/base/redux/functions.js Parādīt failu

@@ -19,7 +19,7 @@ export function assign(target: Object, source: Object) {
19 19
     let t = target;
20 20
 
21 21
     for (const property in source) { // eslint-disable-line guard-for-in
22
-        t = set(t, property, source[property], t === target);
22
+        t = _set(t, property, source[property], t === target);
23 23
     }
24 24
 
25 25
     return t;

Notiek ielāde…
Atcelt
Saglabāt