Pārlūkot izejas kodu

fix(config): no legacy over non-legacy override (#2644)

Do not take legacy property into account if there's non-legacy value.
master
Paweł Domas 7 gadus atpakaļ
vecāks
revīzija
15e1633d86
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      react/features/base/config/reducer.js

+ 1
- 1
react/features/base/config/reducer.js Parādīt failu

157
 
157
 
158
     /* eslint-enable indent */
158
     /* eslint-enable indent */
159
 
159
 
160
-        if (oldKey in newValue) {
160
+        if (oldKey in newValue && !(newKey in newValue.p2p)) {
161
             const v = newValue[oldKey];
161
             const v = newValue[oldKey];
162
 
162
 
163
             // Do not modify oldValue.
163
             // Do not modify oldValue.

Notiek ielāde…
Atcelt
Saglabāt